Thursday, 6 April 2023

Miscellaneous String and Character functions in C

Here is a comprehensive list of miscellaneous string and character functions available in C:

  1. isalpha(): checks if a character is an alphabetic letter.
  2. isdigit(): checks if a character is a digit.
  3. isalnum(): checks if a character is an alphabetic letter or a digit.
  4. isblank(): checks if a character is a space or a tab.
  5. isspace(): checks if a character is a whitespace character (space, tab, newline, etc.).
  6. islower(): checks if a character is a lowercase letter.
  7. isupper(): checks if a character is an uppercase letter.
  8. tolower(): converts a character to lowercase.
  9. toupper(): converts a character to uppercase.
  10. strcat(): concatenates two strings.
  11. strchr(): finds the first occurrence of a character in a string.
  12. strcmp(): compares two strings.
  13. strcpy(): copies one string to another.
  14. strcspn(): returns the length of the initial segment of a string that does not contain any of a set of characters.
  15. strdup(): duplicates a string.
  16. strlen(): returns the length of a string.
  17. strncat(): concatenates a specified number of characters from one string to another.
  18. strncmp(): compares a specified number of characters of two strings.
  19. strncpy(): copies a specified number of characters from one string to another.
  20. strpbrk(): finds the first occurrence in a string of any of a set of characters.
  21. strrchr(): finds the last occurrence of a character in a string.
  22. strspn(): returns the length of the initial segment of a string that contains only a set of characters.
  23. strstr(): finds the first occurrence of a string in another string.
  24. strtok(): breaks a string into a series of tokens based on a delimiter.
  25. memset(): fills a block of memory with a specified value.
  26. memcpy(): copies a block of memory from one location to another.
  27. 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.

Machine Learning

More

Advertisement

Java Tutorial

More

UGC NET CS TUTORIAL

MFCS
COA
PL-CG
DBMS
OPERATING SYSTEM
SOFTWARE ENG
DSA
TOC-CD
ARTIFICIAL INT

C Programming

More

Python Tutorial

More

Data Structures

More

computer Organization

More
Top