Hi everyone,
I'm trying to get this program compiled under Solaris. I have actually
no idea about programming, sorry to bother you.
Unfortunately Solaris don't use the function strsep() anymore:
char *strsep(char **stringp, const char *delim);
DESCRIPTION
The strsep() function returns the next token from the
string stringp which is delimited by delim. The token is
terminated with a `\0' character and stringp is updated to
point past the token.
RETURN VALUE
The strsep() function returns a pointer to the token, or
NULL if delim is not found in stringp.
I need to use a function that Solaris knows about. Tried to simply
substitute strsep() with strtok() which didn't work. The string which I
need to port is:
while (fgets(buf, sizeof(buf), desc) != NULL) {
w = buf;
if ((p = strsep(&w, " \t")) == NULL)
continue;
..
..
..
Any help would be greatly appreciated since google and everyone I know
couldn't help.
-Dan