OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [alpha/] [osf/] [stdlib.h] - Blame information for rev 142

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#ifndef __STDLIB
2
#define __STDLIB
3
 
4
#define EXIT_FAILURE 1
5
#define EXIT_SUCCESS 0
6
#define MB_CUR_MAX 1
7
#ifndef NULL
8
#define NULL ((void*)0)
9
#endif
10
#define RAND_MAX 32767
11
 
12
typedef struct { int quot, rem; } div_t;
13
typedef struct { long quot, rem; } ldiv_t;
14
 
15
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
16
#define _SIZE_T
17
#define _SIZE_T_
18
#define _SIZE_T_DEFINED
19
typedef unsigned long size_t;
20
#endif
21
 
22
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_) && !defined(_WCHAR_T_DEFINED)
23
#define _WCHAR_T
24
#define _WCHAR_T_
25
#define _WCHAR_T_DEFINED
26
#if   (_WCHAR_T_SIZE + 0) == 1
27
typedef unsigned char wchar_t;
28
#elif (_WCHAR_T_SIZE + 0) == 2
29
typedef unsigned short wchar_t;
30
#elif (_WCHAR_T_SIZE + 0) == 4
31
typedef unsigned int wchar_t;
32
#else
33
typedef unsigned short wchar_t;
34
#endif
35
#endif
36
 
37
extern double atof(const char *);
38
extern int atoi(const char *);
39
extern long int atol(const char *);
40
extern double strtod(const char *, char **);
41
extern long int strtol(const char *, char **, int);
42
extern unsigned long int strtoul(const char *, char **, int);
43
extern int rand(void);
44
extern void srand(unsigned int);
45
extern void *calloc(size_t, size_t);
46
extern void free(void *);
47
extern void *malloc(size_t);
48
extern void *realloc(void *, size_t);
49
extern void abort(void);
50
extern int atexit(void (*)(void));
51
extern void exit(int);
52
extern char *getenv(const char *);
53
extern int system(const char *);
54
extern void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void *, const void *));
55
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
56
extern int abs(int);
57
extern div_t div(int, int);
58
extern long int labs(long int);
59
extern ldiv_t ldiv(long int, long int);
60
extern int mblen(const char *, size_t);
61
extern int mbtowc(wchar_t *, const char *, size_t);
62
extern int wctomb(char *, wchar_t);
63
extern size_t mbstowcs(wchar_t *, const char *, size_t);
64
extern size_t wcstombs(char *, const wchar_t *, size_t);
65
 
66
#endif /* __STDLIB */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.