Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>strrchr</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strrchr

Usage

   #include <string.h>
   char *strrchr(const char *string,int ch);

   ANSI

Description

   strrchr finds the last occurrence of character ch in string.

Example 

   #include <stdio.h>
   #include <string.h>
   #include <stdlib.h>

   char string[50] = "Example string";

   int main()
   {
       printf("strrchr Example [%s]\n",
               strrchr(string,'i'));
       return EXIT_SUCCESS;
   }

Return Value

   Returns a pointer to the occurrence of  ch in string. strrchr returns a
   NULL pointer if the character ch is not found.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson