Linux Kernel
3.7.1
|
#include <linux/types.h>
Go to the source code of this file.
Macros | |
#define | __HAVE_ARCH_MEMCHR /* inline & arch function */ |
#define | __HAVE_ARCH_MEMCMP /* arch function */ |
#define | __HAVE_ARCH_MEMCPY /* gcc builtin & arch function */ |
#define | __HAVE_ARCH_MEMSCAN /* inline & arch function */ |
#define | __HAVE_ARCH_MEMSET /* gcc builtin & arch function */ |
#define | __HAVE_ARCH_STRCAT /* inline & arch function */ |
#define | __HAVE_ARCH_STRCMP /* arch function */ |
#define | __HAVE_ARCH_STRCPY /* inline & arch function */ |
#define | __HAVE_ARCH_STRLCAT /* arch function */ |
#define | __HAVE_ARCH_STRLCPY /* arch function */ |
#define | __HAVE_ARCH_STRLEN /* inline & arch function */ |
#define | __HAVE_ARCH_STRNCAT /* arch function */ |
#define | __HAVE_ARCH_STRNCPY /* arch function */ |
#define | __HAVE_ARCH_STRNLEN /* inline & arch function */ |
#define | __HAVE_ARCH_STRRCHR /* arch function */ |
#define | __HAVE_ARCH_STRSTR /* arch function */ |
Functions | |
int | memcmp (const void *, const void *, size_t) |
void * | memcpy (void *, const void *, size_t) |
void * | memset (void *, int, size_t) |
int | strcmp (const char *, const char *) |
size_t | strlcat (char *, const char *, size_t) |
size_t | strlcpy (char *, const char *, size_t) |
char * | strncat (char *, const char *, size_t) |
char * | strncpy (char *, const char *, size_t) |
char * | strrchr (const char *, int) |
char * | strstr (const char *, const char *) |
memcpy - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.
You should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.
strlcat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it
: The size of the destination buffer.
strlcat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it : The size of the destination buffer.
strlcpy - Copy a NUL terminated string into a sized buffer : Where to copy the string to : Where to copy the string from : size of destination buffer
Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.
strncat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it
: The maximum numbers of bytes to copy
returns a pointer to
Note that in contrast to strncpy, strncat ensures the result is terminated.
strncat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it : The maximum numbers of bytes to copy
Note that in contrast to strncpy(), strncat() ensures the result is terminated.
strncpy - Copy a length-limited, NUL-terminated string : Where to copy the string to : Where to copy the string from
: The maximum number of bytes to copy
The result is not NUL-terminated if the source exceeds
bytes.
strncpy - Copy a length-limited, NUL-terminated string : Where to copy the string to : Where to copy the string from : The maximum number of bytes to copy
The result is not NUL-terminated if the source exceeds bytes.
In the case where the length of is less than that of count, the remainder of will be padded with NUL.