|
Functions |
| char * | strcpy (char *dest, const char *src) |
| char * | strncpy (char *dest, const char *src, size_t count) |
| char * | strcat (char *dest, const char *src) |
| char * | strncat (char *dest, const char *src, size_t count) |
| int | strcmp (const char *cs, const char *ct) |
| int | strncmp (const char *cs, const char *ct, size_t count) |
| char * | strchr (const char *s, char c) |
| char * | strrchr (const char *s, char c) |
| size_t | strspn (const char *cs, const char *ct) |
| size_t | strcspn (const char *cs, const char *ct) |
| char * | strpbrk (const char *cs, const char *ct) |
| char * | strstr (const char *cs, const char *ct) |
| size_t | strlen (const char *s) |
| char * | strtok (char *s, const char *ct) |
| void * | memcpy (void *to, const void *from, size_t n) |
| void * | memmove (void *dest, const void *src, size_t n) |
| int | memcmp (const void *cs, const void *ct, size_t count) |
| void * | memchr (const void *cs, char c, size_t count) |
| void * | memset (void *s, char c, size_t count) |
Variables |
| char * | ___strtok |
| char* strcpy |
( |
char * |
dest, |
|
|
const char * |
src | |
|
) |
| | [inline] |
This string-include defines all string functions as inline functions. Use gcc. It also assumes ds=es=data space, this should be normal. Most of the string-functions are rather heavily hand-optimized, see especially strtok,strstr,str[c]spn. They should work, but are not very easy to understand. Everything is done entirely within the register set, making the functions fast and clean. String instructions have been used through-out, making for "slightly" unclear code :-)
Copyright (C) 1991, 1992 Linus Torvalds
< no output
Definition at line 26 of file string.h.