Files
Yanis b28c406d4a Match most of libc (#80)
* started libc

* progress

* format

* match file_io.c

* match mem_funcs and math_api

* printf prog and match strtoul.c

* format

* match bsearch.c

* match ansi_fp.c

* make USE_CURRENT_LOCALE a global define

* started time.c

* match the printf function

* add splits for oot-u and oot-e

* cleanup

* review
2025-05-11 14:58:29 +02:00

31 lines
519 B
C

#ifndef _STDLIB_H
#define _STDLIB_H
#include "revolution/types.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "alloc.h"
#include "arith.h"
#include "mbstring.h"
#include "rand.h"
#include "strtold.h"
#include "strtoul.h"
typedef int (*_compare_function)(const void*, const void*);
void qsort(void*, size_t, size_t, _compare_function);
// For functions that return 0 on a success and -1 on failure
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#define EXIT_FAILURE -1
#endif
#ifdef __cplusplus
};
#endif
#endif