StuBS
string.h File Reference

General purpose String functions. More...

#include "types.h"
Include dependency graph for string.h:
This graph shows which files directly or indirectly include this file:

Functions

char * strchrnul (const char *s, int c)
 Find the first occurrence of a character in a string.
char * strchr (const char *s, int c)
 Find the first occurrence of a character in a string.
int strcmp (const char *s1, const char *s2)
 Compare two strings.
int strncmp (const char *s1, const char *s2, size_t n)
 Compare two strings.
size_t strlen (const char *s)
 Calculate the length of a string.
size_t strnlen (const char *s, size_t maxlen)
 Calculate the length of a string, limited by maxlen.
char * strcpy (char *dest, const char *src)
 Copy the contents of a string including the terminating null byte (\0).
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.
void * memcpy (void *__restrict__ dest, void const *__restrict__ src, size_t size)
 Copy a memory area.
void * memmove (void *dest, void const *src, size_t size)
 Copy a memory area while the source may overlap with the destination.
void * memset (void *dest, int pattern, size_t size)
 Fill a memory area with a pattern.
int memcmp (const void *s1, const void *s2, size_t n)
 Compare a memory area.

Detailed Description

General purpose String functions.