mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
48 lines
No EOL
1.5 KiB
C
48 lines
No EOL
1.5 KiB
C
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
wchar_t *wcschr(const wchar_t *s, wchar_t c);
|
|
size_t wcslen(const wchar_t *s);
|
|
char *strstr(const char *s, const char *find);
|
|
char* strcpy(char *, const char *);
|
|
char* strchr(const char *, int);
|
|
int strcmp(const char *, const char *);
|
|
char* strcat(char *, const char *);
|
|
char* strdup(const char *);
|
|
char* strncpy(char *, const char *, size_t);
|
|
int atoi(const char *);
|
|
|
|
int memcmp(const void *, const void *, size_t);
|
|
void * memcpy (void *dest, const void *src, size_t len);
|
|
void * memset (void *dest, int val, size_t len);
|
|
size_t strlen(const char *);
|
|
|
|
#define sprintf sprintf_
|
|
int sprintf_(char* buffer, const char* format, ...);
|
|
|
|
#define snprintf snprintf_
|
|
int snprintf_(char* buffer, size_t count, const char* format, ...);
|
|
|
|
#define printf printf_
|
|
int printf_(const char* format, ...);
|
|
|
|
char *strtok(char *s, const char *delim);
|
|
int sscanf(const char *, const char *, ...);
|
|
char *strtok_r(char *s, const char *delim, char **last);
|
|
intmax_t strtoimax(const char *nptr, char **endptr, int base);
|
|
unsigned long strtoul(const char *nptr, char **endptr, int base);
|
|
long strtol(const char *nptr, char **endptr, int base);
|
|
void bcopy(const void *src0, void *dst0, size_t length);
|
|
|
|
// this is a lie, we don't have an errno, but we always return...something.
|
|
int* __errno(void);
|
|
|
|
extern void* malloc(size_t);
|
|
void* calloc(size_t, size_t);
|
|
extern void* realloc(void *, size_t);
|
|
extern void free(void *);
|
|
|
|
extern void libc_putchar(char c);
|
|
void _putchar(char c);
|
|
|
|
int rand(void); |