Export (0) Print
Expand All

Standard Types

The Microsoft run-time library defines the following standard types.

Type Description Declared in
clock_t structure Stores time values; used by clock. TIME.H
_complex structure Stores real and imaginary parts of complex numbers; used by _cabs. MATH.H
_CRT_ALLOC_HOOK A typedef for the user-defined hook function. Used in _CrtSetAllocHook. CRTDBG.H
_CRT_DUMP_CLIENT A typedef for a call-back function that will get called in _CrtMemDumpAllObjectsSince. CRTDBG.H
_CrtMemState structure Provides information about the current state of the C run-time debug heap. CRTDBG.H
_CRT_REPORT_HOOK A typedef for a call-back function that will get called in _CrtDbgReport.

The parameters for this function are: report type, output message and the return value from the call-back function.

CRTDBG.H
_dev_t short or unsigned integer Represents device handles. SYS\TYPES.H
_diskfree_t structure Contains information about a disk drive. Used by _getdiskfree. DOS.H and DIRECT.H
div_t, ldiv_t structures Store values returned by div and ldiv, respectively. STDLIB.H
_exception structure Stores error information for _matherr. MATH.H
_EXCEPTION_POINTERS Contains an exception record. See EXCEPTION_POINTERS for more information. FPIEEE.H
FILE structure Stores information about current state of stream; used in all stream I/O operations. STDIO.H
_finddata_t, _finddatai64_t, _wfinddata_t, _wfinddatai64_t structures _finddata_t stores file-attribute information returned by _findfirst and _findnext. _wfinddata_t stores file-attribute information returned by _wfindfirst and _wfindnext. _wfinddatai64_t stores file-attribute information returned by _wfindfirsti64 and _wfindnexti64. _finddata_t: IO.H
_wfinddata_t: IO.H, WCHAR.H
_wfinddatai64_t: IO.H, WCHAR.H
__finddata64_t, __wfinddata64_t structures __finddata64_t stores file-attribute information returned by _findfirst64 and _findnext64. __wfinddata64_t stores file-attribute information returned by _wfindfirst64 and _wfindnext64. IO.H, WCHAR.H
_FPIEEE_RECORD structure Contains information pertaining to IEEE floating-point exception; passed to user-defined trap handler by _fpieee_flt. FPIEEE.H
fpos_t (long integer, __int64, or structure, depending on the target platform) Used by fgetpos and fsetpos to record information for uniquely specifying every position within a file. STDIO.H
_HEAPINFO structure Contains information about next heap entry for _heapwalk. MALLOC.H
_HFILE An operating system file handle. CRTDBG.H
lconv structure Contains formatting rules for numeric values in different countries/regions. LOCALE.H
intptr_t (long integer or __int64, depending on the target platform) Stores a pointer (or HANDLE) on both Win32 and Win64 platforms. STDDEF.H and other include files
jmp_buf array Used by setjmp and longjmp to save and restore program environment. SETJMP.H
mbstate_t Tracks the state of a multibyte character conversion. WCHAR.H
_off_t long integer Represents file-offset value. SYS\TYPES.H
_onexit_t pointer Returned by _onexit. STDLIB.H
_PNH pointer to function Type of argument to _set_new_handler. NEW.H
ptrdiff_t integer Result of subtraction of two pointers. STDDEF.H
_purecall_handler A typedef for a call-back function that is called when a pure virtual function is called. Used by _set_purecall_handler. A _purecall_handler function should have a void return type. STDLIB.H
_RTC_error_fn A typedef for a function that will handle run-time error checks. Used in _RTC_SetErrorFunc. RTCAPI.H
_RTC_ErrorNumber enum Defines error conditions for _RTC_GetErrDesc and _RTC_SetErrorType. RTCAPI.H
_secerr_handler_func A typedef for a function that will handle security errors. Used by _set_security_error_handler. STDLIB.H
_se_translator_function A typedef for a call-back function that translates an exception. The first parameter is the exception code and the second parameter is the exception record. Used by _set_se_translator. EH.H
sig_atomic_t integer Type of object that can be modified as atomic entity, even in presence of asynchronous interrupts; used with signal. SIGNAL.H
size_t unsigned integer Result of sizeof operator. STDDEF.H and other include files
_stat structure Contains file-status information returned by _stat and _fstat. SYS\STAT.H
__stat64 structure Contains file-status information returned by _fstat64 and _stat64, and _wstat64. SYS\STAT.H
_stati64 structure Contains file-status information returned by _fstati64, _stati64, and _wstati64. SYS\STAT.H
terminate_function typedef A typedef for a call-back function that is called when terminate is called. Used by set_terminate. EH.H
time_t long integer Represents time values in mktime and time. TIME.H
__time64_t (__int64) Represents time values in _ctime64, _wctime64, _gmtime64, _localtime64, _mktime64, and _time64. TIME.H
_timeb structure Used by _ftime to store current system time. SYS\TIMEB.H
__timeb64 structure Used by _ftime64 to store current system time. SYS\TIMEB.H
tm structure Used by asctime, gmtime, _gmtime64, localtime, _localtime64, mktime, _mktime64, and strftime to store and retrieve time information. TIME.H
uintptr_t (long integer or __int64, depending on the target platform) An unsigned int or unsigned __int64 version of intprt_t. STDDEF.H and other include files
unexpected_function A typedef for a call-back function that is called when unexpected is called. Used by set_unexpected. EH.H
_utimbuf structure Stores file access and modification times used by _utime to change file-modification dates. SYS\UTIME.H
__utimbuf64 structure Used by _utime64, _wutime64 and _futime64 to store the current time. SYS\UTIME.H
va_list structure Used to hold information needed by va_arg and va_end macros. Called function declares variable of type va_list that can be passed as argument to another function. STDARG.H
wchar_t internal type of a wide character Useful for writing portable programs for international markets. STDDEF.H, STDLIB.H
wctrans_t integer Represents locale-specific character mappings. WCTYPE.H
wctype_t integer Can represent all characters of any national character set. WCHAR.H
wint_t integer Type of data object that can hold any wide character or wide end-of-file value. WCHAR.H

See Also

Run-Time Library Reference

Show:
© 2014 Microsoft