Here is a comprehensive list of miscellaneous string and character functions available in C:
isalpha()
: checks if a character is an alphabetic letter.isdigit()
: checks if a character is a digit.isalnum()
: checks if a character is an alphabetic letter or a digit.isblank()
: checks if a character is a space or a tab.isspace()
: checks if a character is a whitespace character (space, tab, newline, etc.).islower()
: checks if a character is a lowercase letter.isupper()
: checks if a character is an uppercase letter.tolower()
: converts a character to lowercase.toupper()
: converts a character to uppercase.strcat()
: concatenates two strings.strchr()
: finds the first occurrence of a character in a string.strcmp()
: compares two strings.strcpy()
: copies one string to another.strcspn()
: returns the length of the initial segment of a string that does not contain any of a set of characters.strdup()
: duplicates a string.strlen()
: returns the length of a string.strncat()
: concatenates a specified number of characters from one string to another.strncmp()
: compares a specified number of characters of two strings.strncpy()
: copies a specified number of characters from one string to another.strpbrk()
: finds the first occurrence in a string of any of a set of characters.strrchr()
: finds the last occurrence of a character in a string.strspn()
: returns the length of the initial segment of a string that contains only a set of characters.strstr()
: finds the first occurrence of a string in another string.strtok()
: breaks a string into a series of tokens based on a delimiter.memset()
: fills a block of memory with a specified value.memcpy()
: copies a block of memory from one location to another.memmove()
: moves a block of memory from one location to another.
These functions provide powerful tools for working with strings and characters in C.
0 comments :
Post a Comment
Note: only a member of this blog may post a comment.