strsep man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



STRSEP(3)						STRSEP(3)

NAME
       strsep - separate strings

SYNOPSIS
       #include <string.h>

       char *
       strsep(char **stringp, char *delim);

DESCRIPTION
       Strsep  locates	in the null-terminated string at *stringp
       the first occurence of any character in delim and replaces
       this  with  a  '\0', records the location of the immediate
       following character in *stringp, then returns the original
       value  of *stringp.  If no delimiter characters are found,
       strsep sets *stringp to NULL;  if  *stringp  is	initially
       NULL, strsep returns NULL.

EXAMPLES
       The following uses strsep to parse strings containing runs
       of white space, making up an argument vector:

	      char inputstring[100];
	      char **argv[51], **ap = argv, *p, *val;
	      /* set up inputstring */
	      for (p = inputstring; p != NULL; ) {
		  while ((val = strsep(&p, " \t")) != NULL && *val == '\0');
		  *ap++ = val;
	      }
	      *ap = 0;

			   May 15, 1990				1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net