Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for ne_qtoken (redhat section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

NE_TOKEN(3)				neon API reference			      NE_TOKEN(3)

       ne_token, ne_qtoken - string tokenizers

       #include <ne_string.h>

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

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

       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  seg-
       ments  of  the  string are skipped when searching for a separator. A quoted segment is en-
       closed in a pair of one of the characters given in the quotes string.

       The string being tokenized is modified each time the tokenizing function  is  called;  re-
       placing the next separator character with a NUL terminator.

       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);

       Joe Orton <neon@webdav.org>.

neon 0.23.5				  8 October 2002			      NE_TOKEN(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 08:30 PM.