CoolPotOS/apps/include/stdlib.h

20 lines
388 B
C
Raw Normal View History

2024-09-01 14:56:38 +08:00
#ifndef CRASHPOWEROS_STDLIB_H
#define CRASHPOWEROS_STDLIB_H
2024-09-01 16:43:58 +08:00
#include "ctype.h"
2024-09-01 14:56:38 +08:00
2024-09-08 22:43:05 +08:00
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
2024-09-01 14:56:38 +08:00
long long atoi(const char* s);
void *malloc(size_t size);
void free(void *ptr);
void exit(int code);
void *realloc(void *ptr, uint32_t size);
2024-09-06 00:16:50 +08:00
void *calloc(size_t n, size_t size);
2024-09-08 22:43:05 +08:00
void abort();
void goto_xy(short x, short y);
int system(char *command);
2024-09-01 14:56:38 +08:00
#endif