![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strtok equivalent in perl | jisha | Shell Programming and Scripting | 1 | 05-06-2008 04:38 AM |
| Regardign strtok() output directing to 2-D string array | SankarV | High Level Programming | 3 | 04-28-2008 10:48 AM |
| Strtok function.... | Tanvirk | Linux | 3 | 01-24-2008 10:16 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
better way than strtok?
Hi all,
Right now I'm using this but it seems to be a hack: if (prefix(arg, "mark=")) { for (markid = strtok(args[0],"="); markid; markid=strtok((char *)NULL, "=")) { basically the user passes "mark=ny" to the command. I want to be able to extract "ny" from that so I call strtok() twice. I'm assuming there must be a better way....anyone? Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|