Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
string.h File Reference
#include <stddef.h>

Go to the source code of this file.

Functions

charstrcpy (char *dest, const char *src)
 
charstrncpy (char *dest, const char *src, size_t n)
 
charstrcat (char *dest, const char *src)
 
charstrchr (const char *s, int c)
 
int strcmp (const char *s1, const char *s2)
 
int strncmp (const char *s1, const char *s2, size_t n)
 
size_t strlen (const char *s)
 
size_t strnlen (const char *s, size_t count)
 
voidmemset (void *s, int c, size_t n)
 
voidmemmove (void *dest, const void *src, unsigned long n)
 
voidmemcpy (void *dest, const void *src, unsigned long n)
 
voidmemchr (const void *s, int c, size_t n)
 
int memcmp (const void *s1, const void *s2, size_t n)
 

Function Documentation

void* memchr ( const void s,
int  c,
size_t  n 
)

memchr - Find a character in an area of memory. : The memory area : The byte to search for
: The size of the area.

returns the address of the first occurrence of , or NULL if is not found

Definition at line 96 of file string.c.

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* memmove ( void dest,
const void src,
size_t  count 
)

memmove - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.

Unlike memcpy(), memmove() copes with overlapping areas.

Definition at line 10 of file memmove.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.

char* strcat ( char dest,
const char src 
)

strcat - Append one NUL-terminated string to another : The string to be appended to : The string to append to it

returns a pointer to

strcat - Append one NUL-terminated string to another : The string to be appended to : The string to append to it

Definition at line 18 of file string.c.

char* strchr ( const char s,
int  c 
)

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

Definition at line 106 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.

char* strcpy ( char dest,
const char src 
)

strcpy - Copy a NUL terminated string : Where to copy the string to : Where to copy the string from

returns a pointer to

strcpy - Copy a NUL terminated string : Where to copy the string to : Where to copy the string from

Definition at line 12 of file string.c.

size_t strlen ( const char s)

strlen - Find the length of a string : The string to be sized

returns the length of

strlen - Find the length of a string : The string to be sized

Definition at line 59 of file string.c.

int strncmp ( const char cs,
const char ct,
size_t  count 
)

strncmp - Compare two length-limited strings : One string : Another string : The maximum number of bytes to compare

Definition at line 33 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.

size_t strnlen ( const char s,
size_t  count 
)

strnlen - Find the length of a length-limited string : The string to be sized
: The maximum number of bytes to search

returns the minimum of the length of and

strnlen - Find the length of a length-limited string : The string to be sized : The maximum number of bytes to search

Definition at line 15 of file stdio.c.