strtok_r.html 1011 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <title>strtok_r</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>strtok_r</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. strtok_r - tokenize string reentrantly
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;string.h&gt;<br>
  13. <br>
  14. char *<br>
  15. strtok_r(char *<em>string</em>, const char *<em>separators</em>,
  16. char **<em>context</em>);
  17. <h3>Description</h3>
  18. strtok_r is a reentrant version of <A HREF=strtok.html>strtok</A>. It
  19. behaves the same way, except that the internal state is kept using the
  20. <em>context</em> parameter rather than being global.
  21. <p>
  22. The value passed to the <em>context</em> parameter should be the
  23. address of a char * whose value is preserved between successive
  24. related calls to strtok_r. The char * need not be initialized
  25. before the first call, and its value should not be inspected.
  26. <p>
  27. <h3>Return Values</h3>
  28. strtok_r returns successive components of the passed-in string, and
  29. NULL when no more remain.
  30. </body>
  31. </html>