pintos/src/lib/string.c File Reference

#include <string.h>
#include <debug.h>

Go to the source code of this file.

Functions

void * memcpy (void *dst_, const void *src_, size_t size)
void * memmove (void *dst_, const void *src_, size_t size)
int memcmp (const void *a_, const void *b_, size_t size)
int strcmp (const char *a_, const char *b_)
void * memchr (const void *block_, int ch_, size_t size)
char * strchr (const char *string, int c_)
size_t strcspn (const char *string, const char *stop)
char * strpbrk (const char *string, const char *stop)
char * strrchr (const char *string, int c_)
size_t strspn (const char *string, const char *skip)
char * strstr (const char *haystack, const char *needle)
char * strtok_r (char *s, const char *delimiters, char **save_ptr)
void * memset (void *dst_, int value, size_t size)
size_t strlen (const char *string)
size_t strnlen (const char *string, size_t maxlen)
size_t strlcpy (char *dst, const char *src, size_t size)
size_t strlcat (char *dst, const char *src, size_t size)


Function Documentation

void* memchr ( const void *  block_,
int  ch_,
size_t  size 
)

Definition at line 95 of file string.c.

References ASSERT, and NULL.

int memcmp ( const void *  a_,
const void *  b_,
size_t  size 
)

Definition at line 54 of file string.c.

References ASSERT, and NULL.

Referenced by compare_bytes(), load(), main(), strip_antisocial_prefixes(), strstr(), test_main(), and ustar_parse_header().

void* memcpy ( void *  dst_,
const void *  src_,
size_t  size 
)

void* memmove ( void *  dst_,
const void *  src_,
size_t  size 
)

Definition at line 25 of file string.c.

References ASSERT, dst, and NULL.

Referenced by getcwd(), newline(), and relay().

void* memset ( void *  dst_,
int  value,
size_t  size 
)

char* strchr ( const char *  string,
int  c_ 
)

Definition at line 114 of file string.c.

References ASSERT, and NULL.

Referenced by read_command_line(), strcspn(), strip_antisocial_prefixes(), strpbrk(), strspn(), and strtok_r().

int strcmp ( const char *  a_,
const char *  b_ 
)

size_t strcspn ( const char *  string,
const char *  stop 
)

Definition at line 132 of file string.c.

References NULL, and strchr().

size_t strlcat ( char *  dst,
const char *  src,
size_t  size 
)

Definition at line 357 of file string.c.

References ASSERT, memcpy(), NULL, and strlen().

size_t strlcpy ( char *  dst,
const char *  src,
size_t  size 
)

size_t strlen ( const char *  string  ) 

size_t strnlen ( const char *  string,
size_t  maxlen 
)

Definition at line 308 of file string.c.

Referenced by __vprintf(), and read_command_line().

char* strpbrk ( const char *  string,
const char *  stop 
)

Definition at line 146 of file string.c.

References NULL, and strchr().

char* strrchr ( const char *  string,
int  c_ 
)

Definition at line 157 of file string.c.

References NULL.

size_t strspn ( const char *  string,
const char *  skip 
)

Definition at line 171 of file string.c.

References NULL, and strchr().

char* strstr ( const char *  haystack,
const char *  needle 
)

Definition at line 185 of file string.c.

References memcmp(), NULL, and strlen().

char* strtok_r ( char *  s,
const char *  delimiters,
char **  save_ptr 
)

Definition at line 236 of file string.c.

References ASSERT, NULL, and strchr().

Referenced by parse_options().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6