diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /unproto/stdlib.h | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'unproto/stdlib.h')
-rw-r--r-- | unproto/stdlib.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/unproto/stdlib.h b/unproto/stdlib.h new file mode 100644 index 0000000..78d99dd --- /dev/null +++ b/unproto/stdlib.h @@ -0,0 +1,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_ */ |