Study/C
size_t
RuTel
2017. 5. 29. 01:52
728x90
https://msdn.microsoft.com/en-us/library/323b6b3k.aspx?f=255&MSPPError=-2147217396
참고
size_t는 대상 플랫폼에 따라 unsigned __int64 또는 unsigned integer를 뜻한다.
CRTDEFS.H 또는 다른 include 파일에 의해 정의된다.
vcruntime.h
// Definitions of common types #ifdef _WIN64 typedef unsigned __int64 size_t; typedef __int64 ptrdiff_t; typedef __int64 intptr_t; #else typedef unsigned int size_t; typedef int ptrdiff_t; typedef int intptr_t; #endif
#define의 유용성을 생각해보면 필요해 따라 type을 바꿔 쓸 수도 있을 것이다.