strlen

Computes the length of a string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

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

Parameters

s

(IN) Points to the string whose length is to be computed.

Return Values

Returns the number of characters that precede the null-terminating character.