mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-04 07:53:34 +01:00
f33cb3cf80
* 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
29 lines
867 B
C
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 */
|