UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
string.c File Reference
#include "types.h"
#include "x86.h"

Go to the source code of this file.

Functions

void * memset (void *dst, int c, uint n)
 
int memcmp (const void *v1, const void *v2, uint n)
 
void * memmove (void *dst, const void *src, uint n)
 
void * memcpy (void *dst, const void *src, uint n)
 
int strncmp (const char *p, const char *q, uint n)
 
char * strncpy (char *s, const char *t, int n)
 
char * safestrcpy (char *s, const char *t, int n)
 
int strlen (const char *s)
 

Function Documentation

int memcmp ( const void *  v1,
const void *  v2,
uint  n 
)

Definition at line 16 of file string.c.

void* memcpy ( void *  dst,
const void *  src,
uint  n 
)

Definition at line 53 of file string.c.

void* memmove ( void *  dst,
const void *  src,
uint  n 
)

Definition at line 32 of file string.c.

void* memset ( void *  dst,
int  c,
uint  n 
)

Definition at line 5 of file string.c.

char* safestrcpy ( char *  s,
const char *  t,
int  n 
)

Definition at line 83 of file string.c.

int strlen ( const char *  s)

Definition at line 97 of file string.c.

int strncmp ( const char *  p,
const char *  q,
uint  n 
)

Definition at line 59 of file string.c.

char* strncpy ( char *  s,
const char *  t,
int  n 
)

Definition at line 69 of file string.c.