Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_str.h/lib_str.c

Prototype

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          CPU_CHAR  *Str_Char_N (const  CPU_CHAR    *pstr,
                                        CPU_SIZE_T   len_max,
                                        CPU_CHAR     srch_char);

Arguments

pstr

Pointer to the string to search for the specified character.

...

Ideally, Str_Char_N()’s len_max argument would be the last argument in this function’s argument list for consistency with all other custom string library functions. However, the len_max argument is sequentially ordered as the second argument to comply with most standard library’s strnchr() argument list.

Example Usage

...

LanguageC++
CaptionTextCAPTION
languagecpp

...