-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSTDLIB.H
36 lines (29 loc) · 1 KB
/
STDLIB.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Standard utility functions */
#ifndef _STDDEF
typedef int ptrdiff_t; /* result type of pointer difference */
typedef unsigned size_t; /* type yielded by sizeof */
#define offsetof(ty, mem) ((int)&(((ty *)0)->mem))
#define _STDDEF
#ifndef NULL
#define NULL ((void *)0)
#endif NULL
extern int errno; /* system error number */
#endif _STDDEF
#define RAND_MAX 32767 /* max value returned by rand() */
extern double atof(char *);
extern int atoi(char *);
extern long atol(char *);
extern int rand(void);
extern void srand(unsigned int);
extern void * calloc(size_t, size_t);
extern void free(void *);
extern void * malloc(size_t);
extern void * realloc(void *, size_t);
extern void abort(void);
extern void exit(int);
extern char * getenv(char *);
extern int system(char *);
extern void qsort(void *, size_t, size_t, int (*)(void *, void *));
extern int abs(int);
extern long labs(long);