Header File <string.h>

The header file provides the following functionality:

Functions

char *strcpy( char *s, const char *ct );
char *strncpy( char *s, const char *ct, unsigned int n );
char *strcat( char *s, const char *ct );
char *strncat( char *s, const char *ct, unsigned int n );
int strcmp( const char *cs, const char *ct );
int strncmp( const char *cs, const char *ct, unsigned int n );
int strcoll( const char *cs, const char *ct );
char *strchr( const char *cs, int c );
char *strrchr( const char *cs, int c );
unsigned int strspn( const char *cs, const char *ct );
unsigned int strcspn( const char *cs, const char *ct );
char *strpbrk( const char *cs, const char *ct );
char *strstr( const char *cs, const char *ct );
unsigned int strlen( const char *cs );

char *strtok( char *s, const char *ct );

void *memcpy( void *s, const char *ct, unsigned int n );
void *memmove( void *s, const char *ct, unsigned int n );
int memcmp( const void *cs, const char *ct, unsigned int n );
void *memchr( const void *cs, int c, unsigned int n );
void *memset( void *s, int c, unsigned int n );

char *strlwr( char *s );
char *strupr( char *s );

int stricmp( const char *cs, const char *ct );

char *strtok_r( char *s, const char *ct, char **t );

 
Limitations

Functions strlwr, strupr and stricmp rely on Win32API functions to perform their operation, so the mapping will be reflect the current system language.

Missing

Function strerror.

Additions

Functions strlwr (convert string to lowercase), strupr (convert string to uppercase) and stricmp (case insensitive string compare) are all in libc.lib.

Function strtok_r, posix reentrant version of strtok.

Notes

-