strsep man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix 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  characā€
       ters  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;

4.4 Berkeley Distribution	 May 15, 1990			     STRSEP(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

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