Top "Size-t" questions

In C/C++ size_t is the unsigned integer type of the result of the sizeof operator

C: cast int to size_t

What is the proper way to convert/cast an int to a size_t in C99 on both 32bit and 64…

c casting int c99 size-t
Platform independent size_t Format specifiers in c?

I want to print out a variable of type size_t in C but it appears that size_t is …

c platform-independent size-t format-string format-specifiers
Should I always include stddef.h if I use sizeof and size_t

if I'm using the sizeof operator and making use of size_t in my code, do I have necessarily have …

c sizeof size-t
size_t can not be found by g++-4.1 or others on Ubuntu 8.1

This has happened before to me, but I can't remember how I fixed it. I can't compile some programs here …

c++ linux header size-t
Does "std::size_t" make sense in C++?

In some code I've inherited, I see frequent use of size_t with the std namespace qualifier. For example: std::…

c++ size-t
Is the %zu specifier required for printf?

We are using C89 on an embedded platform. I attempted to print out a size_t, but it did not …

c printf c89 size-t c-libraries
Difference between size_t and std::size_t

What are the differences between size_t and std::size_t in terms of where they are declared, when they …

c++ size-t
What is a portable method to find the maximum value of size_t?

I'd like to know the maximum value of size_t on the system my program is running. My first instinct …

c size-t
Conflicting declaration

I have a typedef defined in my code as typdef unsigned int size_t; it is conflicting with stddef's typedef __…

c++ typedef conflict size-t
convert string to size_t

Is there a way to convert std::string to size_t? The problem is that size_t is platform dependable …

c++ string c++11 size-t