1. strcpy()
Copies one string to another
Syntax:
Char hi[10];
Strcpy(hi,”747”);
2. strcmp()
Compares two strings
Syntax:Strcmp(hi,rao);
3. strcat()
Concatenates two strings
Syntax:Strcat(abc,”&”);
4. strlen()
Returns length of the string
Syntax:Strlen(abc);
5. strstr()
Captures substring from main string
6. strtok()
Tokenize the string based on delimeter
Syntax:
xyz = (char*) strtok(abc,”;”);
7. strncpy()
Copies n number of characters to another
8. sprint()
Writes a formatted output to a string
Copies one string to another
Syntax:
Char hi[10];
Strcpy(hi,”747”);
2. strcmp()
Compares two strings
Syntax:Strcmp(hi,rao);
3. strcat()
Concatenates two strings
Syntax:Strcat(abc,”&”);
4. strlen()
Returns length of the string
Syntax:Strlen(abc);
5. strstr()
Captures substring from main string
6. strtok()
Tokenize the string based on delimeter
Syntax:
xyz = (char*) strtok(abc,”;”);
7. strncpy()
Copies n number of characters to another
8. sprint()
Writes a formatted output to a string
No comments:
Post a Comment