StuBS
|
General purpose String functions. More...
#include "types.h"
Functions | |
char * | strchrnul (const char *s, int c) |
Find the first occurrence of a character in a string. More... | |
char * | strchr (const char *s, int c) |
Find the first occurrence of a character in a string. More... | |
int | strcmp (const char *s1, const char *s2) |
Compare two strings. More... | |
int | strncmp (const char *s1, const char *s2, size_t n) |
Compare two strings. More... | |
size_t | strlen (const char *s) |
Calculate the length of a string. More... | |
char * | strcpy (char *dest, const char *src) |
Copy the contents of a string including the terminating null byte (\0 ) More... | |
char * | strncpy (char *dest, const char *src, size_t n) |
Copy the contents of a string up to a maximum length or the terminating null byte (\0 ), whatever comes first. More... | |
void * | memcpy (void *__restrict__ dest, void const *__restrict__ src, size_t size) |
Copy a memory area. More... | |
void * | memmove (void *dest, void const *src, size_t size) |
Copy a memory area while the source may overlap with the destination. More... | |
void * | memset (void *dest, int pattern, size_t size) |
Fill a memory area with a pattern. More... | |
General purpose String functions.