Files
armorpaint/base/sources/libs/miniclib/stdlib.h
T

26 lines
671 B
C
Raw Normal View History

2024-11-10 22:11:29 +01:00
#pragma once
#include <stddef.h>
typedef unsigned long size_t;
#define EXIT_FAILURE 1
void *malloc(size_t size);
2025-11-11 12:33:29 +01:00
void *calloc(size_t num, size_t size);
2024-11-10 22:11:29 +01:00
void *alloca(size_t size);
void *realloc(void *mem, size_t size);
2025-11-11 12:33:29 +01:00
void free(void *mem);
2024-11-10 22:11:29 +01:00
2025-11-11 12:33:29 +01:00
int system(const char *string);
2024-11-10 22:11:29 +01:00
void exit(int code);
2025-11-11 12:33:29 +01:00
long int strtol(const char *str, char **endptr, int base);
float strtof(const char *str, char **endptr);
double atof(const char *str);
int abs(int n);
2024-11-10 22:11:29 +01:00
long long int llabs(long long int n);
2025-11-11 12:33:29 +01:00
void qsort(void *base, size_t num, size_t size, int (*compar)(const void *, const void *));
int rand();
2024-11-10 22:11:29 +01:00
2025-11-11 12:33:29 +01:00
#define RAND_MAX 2147483647