Files
Odin/vendor/libc/include/stdlib.h
Laytan Laats 140c902eff vendor/libc: a bunch of additions
All these additions are to allow Dear ImGui to be compiled natively.
2025-03-12 19:25:35 +01:00

45 lines
723 B
C

#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#include <stddef.h>
void *malloc(size_t size);
void *aligned_alloc(size_t alignment, size_t size);
void free(void *);
void *realloc(void *, size_t);
void qsort(void* base, size_t num, size_t size, int (*compare)(const void*, const void*));
int atoi(const char *);
long atol(const char *);
long long atoll(const char *);
double atof(const char *);
long strtol(const char *, char **, int);
double strtod(const char *, char **);
void abort();
void exit(int exit_code);
#define ATEXIT_MAX 32
int atexit(typeof(void (void)) *);
typedef struct {
long int quot;
long int rem;
} ldiv_t;
ldiv_t ldiv(long int number, long int denom);
#ifdef __cplusplus
}
#endif