ne_qtoken man page on Peanut

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

NE_TOKEN(3)		      neon API reference		   NE_TOKEN(3)

NAME
       ne_token, ne_qtoken - string tokenizers

SYNOPSIS
       #include <ne_string.h>

       char *ne_token (char **str, char sep);

       char *ne_qtoken (char **str, char sep, const char *quotes);

DESCRIPTION
       ne_token	 and  ne_qtoken	 tokenize the string at the location stored in
       the pointer str. Each time the function is called, it returns the  next
       token,  and  modifies  the  str pointer to point to the remainer of the
       string, or NULL if there are no more tokens in the string. A  token  is
       delimited  by  the  separator  character	 sep; if ne_qtoken is used any
       quoted segments of the string are skipped when searching for a  separa‐
       tor.  A	quoted	segment is enclosed in a pair of one of the characters
       given in the quotes string.

       The string being tokenized is modified each time the  tokenizing	 func‐
       tion  is called; replacing the next separator character with a NUL ter‐
       minator.

EXAMPLES
       The following function prints  out  each	 token	in  a  comma-separated
       string list, which is modified in-place:

       static void splitter(char *list)
       {
	 do {
	   printf("Token: %s\n", ne_token(&list, ','));
	 while (list);
       }

AUTHOR
       Joe Orton <neon@webdav.org>.

neon 0.25.5			20 January 2006			   NE_TOKEN(3)
[top]

List of man pages available for Peanut

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