pintos/src/lib/string.h File Reference

#include <stddef.h>

Go to the source code of this file.

Defines

#define strcpy   dont_use_strcpy_use_strlcpy
#define strncpy   dont_use_strncpy_use_strlcpy
#define strcat   dont_use_strcat_use_strlcat
#define strncat   dont_use_strncat_use_strlcat
#define strtok   dont_use_strtok_use_strtok_r

Functions

void * memcpy (void *, const void *, size_t)
void * memmove (void *, const void *, size_t)
char * strncat (char *, const char *, size_t)
int memcmp (const void *, const void *, size_t)
int strcmp (const char *, const char *)
void * memchr (const void *, int, size_t)
char * strchr (const char *, int)
size_t strcspn (const char *, const char *)
char * strpbrk (const char *, const char *)
char * strrchr (const char *, int)
size_t strspn (const char *, const char *)
char * strstr (const char *, const char *)
void * memset (void *, int, size_t)
size_t strlen (const char *)
size_t strlcpy (char *, const char *, size_t)
size_t strlcat (char *, const char *, size_t)
char * strtok_r (char *, const char *, char **)
size_t strnlen (const char *, size_t)


Define Documentation

#define strcat   dont_use_strcat_use_strlcat

Definition at line 32 of file string.h.

#define strcpy   dont_use_strcpy_use_strlcpy

Definition at line 30 of file string.h.

#define strncat   dont_use_strncat_use_strlcat

Definition at line 33 of file string.h.

#define strncpy   dont_use_strncpy_use_strlcpy

Definition at line 31 of file string.h.

Referenced by main().

#define strtok   dont_use_strtok_use_strtok_r

Definition at line 34 of file string.h.


Function Documentation

void* memchr ( const void *  ,
int  ,
size_t   
)

Definition at line 95 of file string.c.

References ASSERT, and NULL.

int memcmp ( const void *  ,
const void *  ,
size_t   
)

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 *  ,
const void *  ,
size_t   
)

void* memmove ( void *  ,
const void *  ,
size_t   
)

Definition at line 25 of file string.c.

References ASSERT, dst, and NULL.

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

void* memset ( void *  ,
int  ,
size_t   
)

char* strchr ( const char *  ,
int   
)

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 *  ,
const char *   
)

size_t strcspn ( const char *  ,
const char *   
)

Definition at line 132 of file string.c.

References NULL, and strchr().

size_t strlcat ( char *  ,
const char *  ,
size_t   
)

Definition at line 357 of file string.c.

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

size_t strlcpy ( char *  ,
const char *  ,
size_t   
)

size_t strlen ( const char *   ) 

char* strncat ( char *  ,
const char *  ,
size_t   
)

size_t strnlen ( const char *  ,
size_t   
)

Definition at line 308 of file string.c.

Referenced by __vprintf(), and read_command_line().

char* strpbrk ( const char *  ,
const char *   
)

Definition at line 146 of file string.c.

References NULL, and strchr().

char* strrchr ( const char *  ,
int   
)

Definition at line 157 of file string.c.

References NULL.

size_t strspn ( const char *  ,
const char *   
)

Definition at line 171 of file string.c.

References NULL, and strchr().

char* strstr ( const char *  ,
const char *   
)

Definition at line 185 of file string.c.

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

char* strtok_r ( char *  ,
const char *  ,
char **   
)

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