strchr.html 617 B

123456789101112131415161718192021222324252627282930
  1. <html>
  2. <head>
  3. <title>strchr</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>strchr</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. strchr - search string for character
  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. strchr(const char *<em>string</em>, int <em>chr</em>);
  16. <h3>Description</h3>
  17. strchr searches <em>string</em> from the left for the first instance
  18. of the character <em>chr</em>.
  19. <h3>Return Values</h3>
  20. strchr returns a pointer to the character found. If the character is
  21. not found, NULL is returned.
  22. </body>
  23. </html>