Wednesday, February 15, 2012

where is size_t defined ?

Many functions uses size_t to make consistence in referring size. size_t is defined in the following header. ( These headers details are taken from RHEL  )


32bit i686 architecture:
/usr/lib/gcc/i686-redhat-linux/4.4.4/include/stddef.h
#define __SIZE_TYPE__ long unsigned int
typedef __SIZE_TYPE__ size_t;


64bit x86 architecture:
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/include/stddef.h
#define __SIZE_TYPE__ long unsigned int
Pin It
Related Posts Plugin for WordPress, Blogger...