Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strlen(3) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

index(3)

rindex(3)

strcat(3)

strcmp(3)

strcspn(3)

strchr(3)

strcpy(3)

strncat(3)

strncmp(3)

strncpy(3)

strpbrk(3)

strrchr(3)

strspn(3)



  strlen(3)                           CLIX                           strlen(3)



  NAME

    strlen - Returns the length of a string

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <string.h>

    int strlen(
      char * string );

  PARAMETERS

    string A pointer to a string of characters

  DESCRIPTION

    The strlen() function returns the number of bytes in the string pointed to
    by the string parameter. The string length value does not include the
    string terminating null character.

  EXAMPLES

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

    main()
    {
         int len;
         char *string;

         string = "hello world!";

         /* This call returns the length of `string'--it should be 12 */
         len = strlen(string);

         printf("The length of the string `%s' is %d\n", string, len);
    }


  RELATED INFORMATION

    Functions: index(3), rindex(3), strcat(3), strcmp(3), strcspn(3),
    strchr(3), strcpy(3), strncat(3), strncmp(3), strncpy(3), strpbrk(3),
    strrchr(3), strspn(3)





  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026