Blob Blame History Raw

#ifndef TOKSVC_NOLIBC_IMPL_H
#define TOKSVC_NOLIBC_IMPL_H

#define isatty   toks_isatty

#define sprintf  toks_sprintf
#define snprintf toks_snprintf

#define memcpy   toks_memcpy
#define memset   toks_memset

#define strcpy   toks_strcpy
#define strlen   toks_strlen
#define strcmp   toks_strcmp
#define strncmp  toks_strncmp
#define strchr   toks_strchr
#define strrchr  toks_strrchr

#define isblank  toks_isblank

#define calloc	 toks_calloc
#define free	 toks_free

int	toks_isatty(int fildes);
int	toks_write(int, const void *, size_t);

int	toks_sprintf(char * str, const char * fmt, ...);
int	toks_snprintf(char * str, size_t n, const char * fmt, ...);

void *  toks_memcpy(void * dst, const void * src, size_t n);
void *	memset(void * ch, int c, size_t n);

char *	toks_strcpy(char * dst, const char * src);
size_t	toks_strlen(const char * ch);
int	toks_strcmp(const char * a, const char * b);
int	toks_strncmp(const char * a, const char * b, size_t n);
char *	toks_strchr(const char * ch, int c);
char *	toks_strrchr(const char * ch, int c);

int     toks_isblank(int c);

void *	toks_calloc(size_t n, size_t size);
void	toks_free(void *);

#endif