This page lists and explains String Functions.
| Function |
Description |
| size_t strlen(char s[])) |
Returns the length of the string (the number of chacters before the terminator). |
| strcpy(char s1[], const char s2[]) |
Copies string s2 to s1. |
| strcat(char s1[], const char s2[]) |
Tacs s2 to the end of s1, thus s2's first character overwrites the terminator in s1. |
| int strcmp(char s1[], const char s2[]) |
Compairs the two strings to see if they are the same, if they are not the same then the returns a number eather greater than or less than zero (base on ASCII cnumeric code of the characters). |
| int atoi(char s[]) |
Changes the string to an intager value. |
| double atof(char s[]) |
Changes the string to a double value. |
| long atol(char s[]) |
Changes the string to a long value. |
| void itoa(int value, char s[], int radix) |
Converts the value to a string based on a specified radix. |
| *NOTE: You must include this import: #include <cstring> |