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

Usage

   #include <string.h>
   size_t strlen(const char *string);

   ANSI

Description

   Returns the length of the string excluding the terminating  \0'.

Example 

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

   char *string = "Example string";
   size_t result;

   int main()
   {

       result = strlen(string);
       printf("The length of string: [%s] is [%d]\n"
               ,string,result);
       return EXIT_SUCCESS;
   }

Return Value

   Returns the length of the string.





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