Functions | |||
char* | strcpy (char *dest, const char *src) | ||
Copies the string pointed to be src (including the terminating `\0' character) to the array pointed to by dest. More... | |||
int | strcmp (const char *s1, const char *s2) | ||
Compares the two strings s1 and s2. More... | |||
void* | memcpy (void *dest, const void *src, size_t len) | ||
Copies n bytes from memory area src to memory area dest. More... | |||
char* | reverse (char *s) | ||
char* | strcat (char *s1, const char *s2) | ||
int | strlen (const char *s) | ||
char* | strncat (char *s1, const char *s2, int n) | ||
int | strncmp (const char *s1, const char *s2, int n) | ||
char* | strncpy (char *s1, const char *s2, int n) |
char * strcpy (char * dest, const char * src) |
Copies the string pointed to be src (including the terminating `\0' character) to the array pointed to by dest.
The strings may not overlap, and the destination string dest must be large enough to receive the copy.
dest | Array to copy into. |
src | Array to copy from. |
int strcmp (const char * s1, const char * s2) |
Compares the two strings s1 and s2.
It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
void * memcpy (void * dest, const void * src, size_t len) |
Copies n bytes from memory area src to memory area dest.
The memory areas may not overlap.
dest | Array to copy into. |
src | Array to copy from. |
len | The length in bytes of src. |