Zilog Z80380 Uživatelský manuál Strana 82

  • 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 81
Library Functions Run Time Environment
4–18 UM004001-COR1103
strncmp FUNCTION
Header file statement: #include <string.h>
Syntax: int strncmp (const char *string1, const char *string2, size_t count);
The strncmp function lexicographically compares, at most, the first count characters of
string1 and string2 and return a value indicating the relationship between the substrings, as
listed below:
Value Meaning
< 0 string1 less than string2
= 0 string1 identical to string2
> 0 string1 greater than string2
Return Value
The return values for this function are described above.
Parameter Description
string1
String to compare
string2
String to compare
count Number of characters compared
Zobrazit stránku 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 115 116

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

Žádné komentáře