Reference links: https://www.runoob.com/cprogramming/c-strings.html
string is actually a null character to \0
terminate an array of characters
when the C compiler will initialize the array of characters, automatically \0
end on a string
Function to manipulate strings
name | description |
---|---|
strcpy(s1,s2) | Copy s1 to s2 |
strcat(s1,s2) | S1 to s2 is connected to the end of the |
strlen(s1) | |
strmp(s1,s2) | Compare whether the same |
strchr(s1,char) | Return position s1 in the first occurrence of char |
strstr(s1,s2) | return |