mirror of
https://github.com/cheat-engine/cheat-engine
synced 2026-08-15 02:26:08 -04:00
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
|
|
// UnderC Development Project, 2001
|
||
|
|
#ifndef __STDLIB_H
|
||
|
|
#define __STDLIB_H
|
||
|
|
|
||
|
|
typedef void (*VOIDFN)();
|
||
|
|
typedef int (*COMPAREFN) (const void *, const void *);
|
||
|
|
#ifndef _SIZE_T_DEF
|
||
|
|
#define _SIZE_T_DEF
|
||
|
|
typedef unsigned int size_t;
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include <_shared_lib.h>
|
||
|
|
extern "C" {
|
||
|
|
char *getenv(const char *);
|
||
|
|
//double atof(const char *);
|
||
|
|
//int atoi(const char *);
|
||
|
|
long atol(const char *);
|
||
|
|
double strtod(const char *, char **);
|
||
|
|
long strtol(const char *, char **, int);
|
||
|
|
unsigned long strtoul(const char *s, char **, int);
|
||
|
|
//int rand(void);
|
||
|
|
int srand(unsigned int);
|
||
|
|
void *malloc(size_t);
|
||
|
|
void *realloc(void *, size_t);
|
||
|
|
void free(void *);
|
||
|
|
void exit(int);
|
||
|
|
void abort(void);
|
||
|
|
|
||
|
|
int system(const char* cmd);
|
||
|
|
char *_gcvt( double value, int digits, char *buffer );
|
||
|
|
|
||
|
|
int atexit (VOIDFN);
|
||
|
|
void *bsearch(const void *, const void *,
|
||
|
|
size_t, size_t, COMPAREFN);
|
||
|
|
void qsort(void *, size_t, size_t, COMPAREFN);
|
||
|
|
int abs(int);
|
||
|
|
long labs(long);
|
||
|
|
|
||
|
|
struct div_t {
|
||
|
|
int quot;
|
||
|
|
int rem;
|
||
|
|
};
|
||
|
|
div_t div(int, int);
|
||
|
|
|
||
|
|
struct ldiv_t {
|
||
|
|
long quot;
|
||
|
|
long rem;
|
||
|
|
};
|
||
|
|
ldiv_t ldiv(long, long);
|
||
|
|
}
|
||
|
|
#lib
|
||
|
|
#endif
|
||
|
|
|