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

📄 ican_stdlib.h

📁 可自行修改移植的CAN应用层协议栈
💻 H
字号:
/*--------------------------------------------------------------------------
STDLIB.H

Standard functions for ARM CA Version 1.
Copyright (c) 1995-2004 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/

#ifndef __STDLIB_H__
#define __STDLIB_H__

#ifdef  __cplusplus
extern "C" {
#endif

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

#ifndef NULL
 #define NULL ((void *) 0L)
#endif

#ifndef _WCHAR_T_DEFINED_
#define _WCHAR_T_DEFINED_
 typedef char wchar_t;
#endif

#ifndef RAND_MAX
 #define RAND_MAX  32767u
#endif

#ifndef __DIV_T

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

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

#define __DIV_T
#endif

extern int     abs  (int   val);
extern long   labs  (long  val);

extern        double strtod  (const char *str, char **ptr);
extern          long strtol  (const char *str, char **ptr, int base);
extern unsigned long strtoul (const char *str, char **ptr, int base);
extern div_t         div     (int  x, int  y);
extern ldiv_t        ldiv    (long x, long y);


extern double atof  (const char *s1);
extern long   atol  (const unsigned char *s1);
extern int    atoi  (const unsigned char *s1);
extern int    rand  (void);
extern void   srand (unsigned int seed);

extern void  *malloc        (unsigned int size);
extern void   free          (void *p);
extern void   init_mempool  (void *p, unsigned int size);
extern void  *realloc       (void *p, unsigned int size);
extern void  *calloc        (unsigned int size, unsigned int len);

#ifdef  __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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