You are on page 1of 1

1) strlen():- It calculates the length (no of characters ) of a string.

syntax: size_t strlen(const char *s);

2) strrev():- Reverses all characters in given string

syntax: char *strrev(char *s);

3) strcpy():- It copies the given string(src) to the specified string(dest).

syntax: char *strcpy(char *dest, const char *src);

4) strcat():- It appends one string to another.

syntax: char *strcat(char *dest, const char *src);

5)strlwr():- It converts all upper case characters in given string into

lower case.

syntax: char *strlwr(char *s);

6)strupr():- It converts all lower case characters in given string into upper case.

syntax: char *strupr(char *s);

7)strncpy():- Copies at most maxlen characters of src to dest.

syntax: char *strncpy(char *dest, const char *src, size_t maxlen);

8)strcmp():- It compares the given two strings with case sensitivity.

syntax: int strcmp(const char *s1, const char *s2);

9)stricmp():-It compares the given two strings without case sensitivity.

You might also like