Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
string.h File Reference
#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)
 
voidmemcpy (void *, const void *, size_t)
 
voidmemset (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)
 
charstrncat (char *, const char *, size_t)
 
charstrncpy (char *, const char *, size_t)
 
charstrrchr (const char *, int)
 
charstrstr (const char *, const char *)
 

Macro Definition Documentation

#define __HAVE_ARCH_MEMCHR   /* inline & arch function */

Definition at line 14 of file string.h.

#define __HAVE_ARCH_MEMCMP   /* arch function */

Definition at line 15 of file string.h.

#define __HAVE_ARCH_MEMCPY   /* gcc builtin & arch function */

Definition at line 16 of file string.h.

#define __HAVE_ARCH_MEMSCAN   /* inline & arch function */

Definition at line 17 of file string.h.

#define __HAVE_ARCH_MEMSET   /* gcc builtin & arch function */

Definition at line 18 of file string.h.

#define __HAVE_ARCH_STRCAT   /* inline & arch function */

Definition at line 19 of file string.h.

#define __HAVE_ARCH_STRCMP   /* arch function */

Definition at line 20 of file string.h.

#define __HAVE_ARCH_STRCPY   /* inline & arch function */

Definition at line 21 of file string.h.

#define __HAVE_ARCH_STRLCAT   /* arch function */

Definition at line 22 of file string.h.

#define __HAVE_ARCH_STRLCPY   /* arch function */

Definition at line 23 of file string.h.

#define __HAVE_ARCH_STRLEN   /* inline & arch function */

Definition at line 24 of file string.h.

#define __HAVE_ARCH_STRNCAT   /* arch function */

Definition at line 25 of file string.h.

#define __HAVE_ARCH_STRNCPY   /* arch function */

Definition at line 26 of file string.h.

#define __HAVE_ARCH_STRNLEN   /* inline & arch function */

Definition at line 27 of file string.h.

#define __HAVE_ARCH_STRRCHR   /* arch function */

Definition at line 28 of file string.h.

#define __HAVE_ARCH_STRSTR   /* arch function */

Definition at line 29 of file string.h.

Function Documentation

int memcmp ( const void cs,
const void ct,
size_t  count 
)

memcmp - Compare two areas of memory : One area of memory : Another area of memory : The size of the area.

Definition at line 68 of file string.c.

void* memcpy ( void dest,
const void src,
size_t  count 
)

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.

Definition at line 151 of file memcpy.c.

void* memset ( void s,
int  c,
size_t  count 
)

memset - Fill a region of memory with the given value : Pointer to the start of the area. : The byte to fill the area with : The size of the area.

Do not use memset() to access IO space, use memset_io() instead.

Definition at line 116 of file string.c.

int strcmp ( const char cs,
const char ct 
)

strcmp - Compare two strings : One string : Another string

returns 0 if and are equal, < 0 if is less than > 0 if is greater than

strcmp - Compare two strings : One string : Another string

Definition at line 81 of file string.c.

size_t strlcat ( char dest,
const char src,
size_t  count 
)

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.

Definition at line 154 of file string.c.

size_t strlcpy ( char dest,
const char src,
size_t  size 
)

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.

Definition at line 94 of file string.c.

char* strncat ( char dest,
const char src,
size_t  count 
)

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.

Definition at line 183 of file string.c.

char* strncpy ( char dest,
const char src,
size_t  count 
)

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.

Definition at line 116 of file string.c.

char* strrchr ( const char s,
int  c 
)

strrchr - Find the last occurrence of a character in a string : The string to be searched : The character to search for

Definition at line 226 of file string.c.

char* strstr ( const char s1,
const char s2 
)

strstr - Find the first substring in a NUL terminated string : The string to be searched : The string to search for

Definition at line 244 of file string.c.