stddef.h

来自「TI公司的CCS一些常用的函数库」· C头文件 代码 · 共 28 行

H
28
字号
///////////////////////////////////////////////////////////////////////////
////        (C) Copyright 1996,2003 Custom Computer Services           ////
//// This source code may only be used by licensed users of the CCS C  ////
//// compiler.  This source code may only be distributed to other      ////
//// licensed users of the CCS C compiler.  No other use, reproduction ////
//// or distribution is permitted without written permission.          ////
//// Derivative programs created using this software in object code    ////
//// form are not restricted in any way.                               ////
///////////////////////////////////////////////////////////////////////////

#ifndef _STDDEF

#define _STDDEF

#if sizeof(int *)==1
#define ptrdiff_t int
#else
#define ptrdiff_t long
#endif

#define size_t int
#define wchar_t char
#define NULL 0

#define offsetof(s,f) (offsetofbit(s,f)/8)

#endif

⌨️ 快捷键说明

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