Planeshift
linux_libc_support.h File Reference
#include <stdint.h>
#include <limits.h>
#include <sys/types.h>

Go to the source code of this file.

Macros

#define my_memcmp   memcmp
 
#define my_memcpy   memcpy
 
#define my_memmove   memmove
 

Functions

int my_isspace (int ch)
 
void * my_memchr (const void *src, int c, size_t len)
 
void my_memset (void *ip, char c, size_t len)
 
const char * my_read_decimal_ptr (uintptr_t *result, const char *s)
 
const char * my_read_hex_ptr (uintptr_t *result, const char *s)
 
const char * my_strchr (const char *haystack, char needle)
 
int my_strcmp (const char *a, const char *b)
 
size_t my_strlcat (char *s1, const char *s2, size_t len)
 
size_t my_strlcpy (char *s1, const char *s2, size_t len)
 
size_t my_strlen (const char *s)
 
int my_strncmp (const char *a, const char *b, size_t len)
 
const char * my_strrchr (const char *haystack, char needle)
 
bool my_strtoui (int *result, const char *s)
 
unsigned my_uint_len (uintmax_t i)
 
void my_uitos (char *output, uintmax_t i, unsigned i_len)
 

Macro Definition Documentation

#define my_memcmp   memcmp

Definition at line 86 of file linux_libc_support.h.

#define my_memcpy   memcpy

Definition at line 84 of file linux_libc_support.h.

#define my_memmove   memmove

Definition at line 85 of file linux_libc_support.h.

Function Documentation

int my_isspace ( int  ch)
void* my_memchr ( const void *  src,
int  c,
size_t  len 
)
void my_memset ( void *  ip,
char  c,
size_t  len 
)
const char* my_read_decimal_ptr ( uintptr_t *  result,
const char *  s 
)
const char* my_read_hex_ptr ( uintptr_t *  result,
const char *  s 
)
const char* my_strchr ( const char *  haystack,
char  needle 
)
int my_strcmp ( const char *  a,
const char *  b 
)
size_t my_strlcat ( char *  s1,
const char *  s2,
size_t  len 
)
size_t my_strlcpy ( char *  s1,
const char *  s2,
size_t  len 
)
size_t my_strlen ( const char *  s)
int my_strncmp ( const char *  a,
const char *  b,
size_t  len 
)
const char* my_strrchr ( const char *  haystack,
char  needle 
)
bool my_strtoui ( int result,
const char *  s 
)
unsigned my_uint_len ( uintmax_t  i)
void my_uitos ( char *  output,
uintmax_t  i,
unsigned  i_len 
)