C语言库函数的原型,有用的拿去

源代码在线查看: timeb.inl

软件大小: 3272 K
上传用户: kens
关键词: C语言 库函数 原型
下载地址: 免注册下载 普通下载 VIP

相关代码

				/***
				*timeb.inl - inline definitions for low-level file handling and I/O functions
				*
				*       Copyright (c) Microsoft Corporation. All rights reserved.
				*
				*Purpose:
				*       This file contains the definition of the _ftime() function.
				*
				*       [Public]
				*
				****/
				
				#pragma once
				
				#if !defined (__CRTDECL)
				#if defined (_M_CEE_PURE)
				#define __CRTDECL
				#else  /* defined (_M_CEE_PURE) */
				#define __CRTDECL   __cdecl
				#endif  /* defined (_M_CEE_PURE) */
				#endif  /* !defined (__CRTDECL) */
				
				#ifndef _INC_TIMEB_INL
				#define _INC_TIMEB_INL
				
				/* _STATIC_ASSERT is for enforcing boolean/integral conditions at compile time.
				   Since it is purely a compile-time mechanism that generates no code, the check
				   is left in even if _DEBUG is not defined. */
				
				#ifndef _STATIC_ASSERT
				#define _STATIC_ASSERT(expr) typedef char __static_assert_t[ (expr) ]
				#endif  /* _STATIC_ASSERT */
				
				#if !__STDC__
				
				/* Non-ANSI name for compatibility */
				
				#pragma warning(push)
				#pragma warning(disable:4996)
				
				#ifdef _USE_32BIT_TIME_T
				static __inline void __CRTDECL ftime(struct timeb * _Tmb)
				{
				    _STATIC_ASSERT( sizeof(struct timeb) == sizeof(struct __timeb32) );
				    _ftime32((struct __timeb32 *)_Tmb);
				}
				#else  /* _USE_32BIT_TIME_T */
				static __inline void __CRTDECL ftime(struct timeb * _Tmb)
				{
				    _STATIC_ASSERT( sizeof(struct timeb) == sizeof(struct __timeb64) );
				    _ftime64((struct __timeb64 *)_Tmb);
				}
				#endif  /* _USE_32BIT_TIME_T */
				
				#pragma warning(pop)
				
				#endif  /* !__STDC__ */
				
				#endif  /* _INC_TIMEB_INL */
							

相关资源