Zilog Z80380 Uživatelský manuál Strana 84

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 116
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 83
Library Functions Run Time Environment
4–20 UM004001-COR1103
strrchr FUNCTION
Header file statement: #include <string.h>
Syntax: char *strrchr (const char *string, int c);
The strrchr function finds the last occurrence of c (converted to char) in string. The string’s
terminating null character (‘\0’) is included in the search. (Use strchr to find the first occur
-
rence of c in string.)
Return Value
This function returns a pointer to the last occurrence of the character in the string. A NULL
pointer is returned if the given character is not found.
strspn FUNCTION
Header file statement: #include <string.h>
Syntax: size_t strspn( const char *string1, const char *string2 );
The strspn function returns the index of the first character in string1 that does not belong to
the set of characters specified by string2. This value is equivalent to the length of the initial
substring of string1 that consists entirely of characters from string2 . The null character (‘\0’)
terminating string2 is not considered in the matching process. If string1 begins with a charac
-
ter not in string2, strspn returns 0.
Return Value
This function returns an integer value specifying the length of the segment in string1 consist-
ing entirely of characters in string2.
Parameter Description
string
Searched string
c
Character to be located
Parameter Description
string1
Searched string
string2
Character set
Zobrazit stránku 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 115 116

Komentáře k této Příručce

Žádné komentáře