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++ Language Reference - strspn http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                  strspn

   Usage
   #include <string.h>
   size_t strspn(const char *string1,const char *string2);

   Description
   Returns  the length of the initial segment of string1  which  consists
   entirely of characters found in string2.

   Example
   #include <string.h>
   #include <stdio.h>
   char *string = "Example";
   char *cmp = "aEx";
   main()
   {
   int result;
        printf("Length of string in [%s] containing [%s] \
                  characters\n", string,cmp);
        printf("strspn is [%d]\n",strspn(string,cmp));
   }


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