summaryrefslogtreecommitdiff
path: root/unproto/stdlib.h
blob: 78d99dd983a7d553b2aac2da32616c4d2ee7ff19 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* @(#) stdlib.h 1.1 92/02/15 17:25:45 */

#ifndef _stdlib_h_
#define _stdlib_h_

/* NULL is also defined in <stdio.h> */

#ifndef NULL
#define NULL	0
#endif

/*
 * Some functions in this file will be missing from the typical pre-ANSI
 * UNIX library. Some pre-ANSI UNIX library functions have return types
 * that differ from what ANSI requires.
 */

extern double atof();
extern int atoi();
extern long atol();
extern double strtod();
extern long strtol();
extern unsigned long strtoul();
extern int rand();
extern void srand();
extern char *calloc();
extern char *malloc();
extern char *realloc();
extern void free();
extern void abort();
extern void exit();
extern int atextit();
extern int system();
extern char *getenv();
extern char *bsearch();
extern void qsort();
extern int abs();
extern long labs();

typedef struct {
    int     quot;
    int     rem;
} div_t;

typedef struct {
    long    quot;
    long    rem;
} ldiv_t;

extern div_t div();
extern ldiv_t ldiv();

#endif /* _stdlib_h_ */