Standard String Library functions in string.h in C Posted by R on August 6, 2012 FUNCTION USE strlen Finds the length of the string. strlwr Converts string to lower case. strupr Converts string to upper case. strcat Appends one string at end of another. strncat Appends first n characters of a string at end of another. strcpy Copies a string to another. strncpy Copies first n characters of a string into another. strcmp Compares two strings strncmp Compares first n characters of two strings. strcmpi Compares two strings without regards to case. stricmp Compares two strings without regards to case. strnicmp Compares first n characters of a string without regards to case. strdup Duplicates a string. strchr Finds first occurrence of a given character in a string. strrchr Finds last occurrence of a given character in a string. strstr Finds first occurrence of a given string in a string. strset Sets all characters of a string to given character. strnset Sets first n characters of a string to given character. strrev Reverses the string. Share this:TwitterFacebookLinkedInLike this:Like Loading... Related