isupper. McGraw-Hill The Complete Reference Fourth Edition
Annonce
Annonce
C h a p t e r 2 6 : T h e S t r i n g a n d C h a r a c t e r F u n c t i o n s
727
isupper
#include <cctype> int isupper(int ch);
The isupper( ) function returns nonzero if ch is an uppercase letter; otherwise zero is returned.
A related function is islower( ).
isxdigit
#include <cctype> int isxdigit(int ch);
The isxdigit( ) function returns nonzero if ch is a hexadecimal digit; otherwise zero is returned. A hexadecimal digit will be in one of these ranges: A–F, a–f, or 0–9.
Related functions are isalnum( ), isalpha( ), iscntrl( ), isdigit( ), isgraph( ), ispunct( ), and isspace( ).
memchr
#include <cstring> void *memchr(const void * buffer, int ch, size_t count);
The memchr( ) function searches the array pointed to by buffer for the first occurrence of ch in the first count characters.
The memchr( ) function returns a pointer to the first occurrence of ch in buffer, or it returns a null pointer if ch is not found.
Related functions are memcpy( ) and isspace( ).
memcmp
#include <cstring> int memcmp(const void * buf1, const void *buf2, size_t count);
Download
Annonce