String operation function
CHAR STPCPY (CHAR * DEST, Const Char * src) Copy the string SRC to DEST
Char strcat (char * dest, const char * src) Adds string src to the end of DEST
CHAR STRCHR (const char * s, int C)
Retrieve and return the first place in the string S in the string S
INT STRCMP (Const Char * S1, Const Char * S2)
Compare the size of the strings S1 and S2 and return S1-S2
Char Strcpy (Char * Dest, Const Char * SRC)
Copy string src to DEST
SIZE_T STRCSPN (Const Char * S1, Const Char * S2)
Scan S1, returns in S1, there are also characters in S2
Char strdup (const char * s)
Copy the string S to the recently established unit
INT STRICMP (Const Char * S1, Const Char * S2)
Compare strings S1 and S2, and return S1-S2
SIZE_T STRLEN (Const Char * S)
Returns the length of the string S
Char strlwr (char * s)
Convert all uppercase letters in the string S to lowercase letters and return the conversion string
Char Strncat (Char * Dest, Const Char * src, size_t maxlen)
Copy the most Maxlen characters in the string SRC to the string DEST
INT STRNCMP (Const Char * S1, Const Char * S2, SIZE_T MAXLEN)
Comparison string S1 and front Maxlen characters in S2
Char Strncpy (Char * Dest, Const Char * src, SIZE_T MAXLEN)
Copy the front Maxlen characters in the SRC to DEST
Int StrnicMP (const char * s1, const char * s2, size_t maxlen)
Comparison string S1 and front Maxlen characters in S2
Char strnset (Char * S, INT CH, SIZE_T N)
Place the front n character of the string S in CH
Char Strpbrk (const char * s1, const char * s2)
Scan string S1 and return the number of characters all in S1 and S2
CHAR STRRCHR (const char * s, int C)
Scan a string S for a given character C
Char Strrev (Char * S)
Return all characters in the string s to rearrange the characters and return the arranged string
Char strset (Char * S, INTC)
Place all characters in a string S in a given character CH
SIZE_T STRSPN (Const Char * S1, Const Char * S2)
Scan string S1 and return the number of characters all in S1 and S2
CHAR STRSTR (Const Char * S1, Const Char * S2)
Scan string S2 and return to the position of S1 in the first time
Char Strtok (Char * S1, Const Char * S2)
Retrieve string S1, the string S1 is separated by the delimiter defined in the string S2
Char strupr (char * s)
Convert all lowercase letters in the string S to uppercase letters and return the conversion string