gint/include/core/std.h
lephe f33cb3cf80 core: better bootlog API and implementation
* Now uses topti instead of fxlib for text (including MMU failure)
* Fit .pretext into 4k for everything before MMU succeeds
* A short version of sprintf() for dynamic messages
* Support a driver function, status(), to allow early driver debug
* Expose more useful platform information in <gint/mpu.h>
* Expose the first of a few CASIOWIN syscalls
2019-03-06 14:32:51 +01:00

29 lines
867 B
C

//---
// gint:core:std - a few standard functions implemented in gint
//
// There are few enough of them that it felt unnecessary to use a full-
// fledged standard library.
//---
#ifndef GINT_CORE_STD
#define GINT_CORE_STD
#include <gint/defs/types.h>
#include <stdarg.h>
/* memcpy() - copy a chunk of memory to a non-overlapping destination */
void *memcpy(void * restrict dest, const void * restrict src, size_t n);
/* memset() - fill a chunk of memory with a single byte */
void *memset(void *dest, int byte, size_t n);
/* strlen() - length of a NUL-terminated string */
size_t strlen(const char *str);
/* vsprintf() - an almost-empty subset of the real one */
void vsprintf(char *str, const char *format, va_list args);
/* sprintf() - an almost-empty subset of the real one */
void sprintf(char *str, const char *format, ...);
#endif /* GINT_CORE_STD */