improved parameters

This commit is contained in:
eck
1989-09-29 15:46:33 +00:00
parent 77259cd2f9
commit 26cc87efe6
16 changed files with 346 additions and 398 deletions

View File

@@ -6,10 +6,10 @@
*/
/* $Header$ */
#ifndef _STDLIB_HEADER_
#define _STDLIB_HEADER_
#if !defined(__STDLIB_HEADER__)
#define __STDLIB_HEADER__
#ifndef NULL
#if !defined(NULL)
#define NULL 0
#endif /* NULL */
@@ -21,48 +21,46 @@
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
#ifndef _TYPE_SIZE_
#define _TYPE_SIZE_
#if !defined(__TYPE_SIZE__)
#define __TYPE_SIZE__
typedef unsigned int size_t;
#endif /* _TYPE_SIZE_ */
#endif /* __TYPE_SIZE__ */
#ifndef _TYPE_WCHAR_
#define _TYPE_WCHAR_
typedef int wchar_t;
#endif /* _TYPE_WCHAR_ */
#if !defined(__TYPE_WCHAR__)
#define __TYPE_WCHAR__
typedef char wchar_t;
#endif /* __TYPE_WCHAR__ */
#ifdef __STDC__
double atof(const char *nptr);
int atoi(const char *nptr);
long atol(const char *nptr);
double strtod(const char *nptr, char **endptr);
long strtol(const char *nptr, char **endptr, int base);
unsigned long int strtoul(const char *nptr, char **endptr, int base);
double atof(const char *__nptr);
int atoi(const char *__nptr);
long atol(const char *__nptr);
double strtod(const char *__nptr, char **__endptr);
long strtol(const char *__nptr, char **__endptr, int __base);
unsigned long int strtoul(const char *__nptr, char **__endptr, int __base);
int rand(void);
void srand(unsigned int seed);
void *calloc(size_t nmemb, size_t size);
void free(void *ptr);
void *malloc(size_t size);
void *realloc(void *ptr, size_t size);
void srand(unsigned int __seed);
void *calloc(size_t __nmemb, size_t __size);
void free(void *__ptr);
void *malloc(size_t __size);
void *realloc(void *__ptr, size_t __size);
void abort(void);
int atexit(void (*func)(void));
void exit(int status);
char *getenv(const char *name);
int system(const char *string);
void *bsearch(const void *key, const void *base,
size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
void qsort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
int abs(int j);
div_t div(int numer, int denom);
long labs(long j);
ldiv_t ldiv(long numer, long denom);
int mblen(const char *s, size_t n);
int mbtowc(wchar_t *pwc, const char *s, size_t n);
int wctomb(const char *s, wchar_t wchar);
size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n);
size_t wcstombs(char *s, const wchar_t *pwcs, size_t n);
#endif /* __STDC__ */
int atexit(void (*__func)(void));
void exit(int __status);
char *getenv(const char *__name);
int system(const char *__string);
void *bsearch(const void *__key, const void *__base,
size_t __nmemb, size_t __size,
int (*__compar)(const void *, const void *));
void qsort(void *__base, size_t __nmemb, size_t __size,
int (*__compar)(const void *, const void *));
int abs(int __j);
div_t div(int __numer, int __denom);
long labs(long __j);
ldiv_t ldiv(long __numer, long __denom);
int mblen(const char *__s, size_t __n);
int mbtowc(wchar_t *__pwc, const char *__s, size_t __n);
int wctomb(char *__s, wchar_t __wchar);
size_t mbstowcs(wchar_t *__pwcs, const char *__s, size_t __n);
size_t wcstombs(char *__s, const wchar_t *__pwcs, size_t __n);
#endif /* _STDLIB_HEADER_ */
#endif /* __STDLIB_HEADER__ */