/
Str_Len()
Str_Len()
Determines the length of a string.
Files
lib_str.h/lib_str.c
Prototype
CPU_SIZE_T Str_Len (const CPU_CHAR *pstr);
Arguments
pstr
Pointer to the string.
Returned Value
Length of string, in number of characters, before, but not including, the terminating NULL
character.
Required Configuration
None.
Notes / Warnings
String buffer not modified.
String length calculation terminates if string pointer points to or overlaps the NULL
address.
Example Usage
CPU_SIZE_T len; len = Str_Len("SomeString");
Related content
Str_Len_N()
Str_Len_N()
More like this
Str_Char_N()
Str_Char_N()
More like this
Str_Char_Last_N()
Str_Char_Last_N()
More like this
Str_Char_Last()
Str_Char_Last()
More like this
Str_Copy_N()
Str_Copy_N()
More like this
Str_Char()
Str_Char()
More like this