code vault - mystrtokWhat links here?

Code



//##############################################################################
// parse the given string into tokens
// strings within single quotes (') are considered a single token
// if called with string == NULL, it starts where it left off last call
//##############################################################################
char *mystrtok(char *string, char *delimiters)
{
    static char    *work;
    char           *start;
    int             in_quotes;
    
    if (string != NULL) work = string;
    in_quotes = 0;


if (!(*work)) return (NULL); start = work; /* move forward looking for the next character in delimiters */ while (*work) { if (strchr(delimiters, *work) && !in_quotes) break; if (*work == 0x27) in_quotes = in_quotes ? 0 : 1; work++; }; // replace the delimiter with '\0' to signal end of the string if (*work) { *work = '\0'; work++; } return (start); }
code vault - mystrtok
linux - usb
Imperial Machine Screw Thread Pitch Chart
code vault - file_info
embedded systems - operating systems
linux - network status
ebi:scripting
linux - gimp
Topical Bible - Judge not...
linux - backup
o
linux - managing updates
programming - windows - win32 constants
programming - windows - window startup messages
linux - ncurses
code vault - copy_file
linux - environment variables
linux - create mount point
filename:code vault - mystrtok
filename:code%20vault%20%2D%20mystrtok
last edit:March 26 2009 22:59:10 (6436 days ago)
ct = 1794244099.000000 = November 09 2026 17:08:19
ft = 1238108350.000000 = March 26 2009 22:59:10
dt = 556135749.000000