⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdlib.h

📁 cxstm8 编译器
💻 H
字号:
/*	GENERAL LIBRARY FUNCTIONS HEADER
 *	Copyright (c) 2006 by COSMIC Software
 */
#ifndef __STDLIB__
#define __STDLIB__	1

#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define MB_CUR_MAX 1
#define NULL	(void *)0
#define RAND_MAX 32767

#ifndef __SIZE_T__
#define __SIZE_T__	1
typedef unsigned int size_t;
#endif

#ifndef __WCHAR_T__
#define __WCHAR_T__	1
typedef char wchar_t;
#endif

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

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

int abs(int i);
double atof(char *nptr);
int atoi(char *nptr);
long atol(char *nptr);
void *calloc(unsigned int nelem, unsigned int elsize);
div_t div(int numer, int denom);
void exit(int status);
void free(void *ptr);
long labs(long l);
ldiv_t ldiv(long numer, long denom);
void *malloc(unsigned int size);
int rand(void);
void *realloc(void *ptr, unsigned int size);
void srand(unsigned int seed);
double strtod(char *s, char **endptr);
long strtol(char *s, char **endptr, int base);

unsigned int isqrt(unsigned int);
unsigned int lsqrt(unsigned long);
char _fctcpy(char);

#define abort exit
#define strtoul strtol

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -