R
Roka100
Hi,
I am using size_t and ssize_t . But I am confused about them.
<ssize_t>
typedef int __ssize_t;
typedef __ssize_t ssize_t;
<size_t >
typedef unsigned int size_t;
That is:
ssize_t = int
size_t = unsigned int
I see the range of them are :
int ( ssize_t ) : -32767~32767
unsigned int ( size_t ) : 0~65535
My question is : Is that necessary to use ssize_t ? ( size can be minus
? )
Thanks.
I am using size_t and ssize_t . But I am confused about them.
<ssize_t>
typedef int __ssize_t;
typedef __ssize_t ssize_t;
<size_t >
typedef unsigned int size_t;
That is:
ssize_t = int
size_t = unsigned int
I see the range of them are :
int ( ssize_t ) : -32767~32767
unsigned int ( size_t ) : 0~65535
My question is : Is that necessary to use ssize_t ? ( size can be minus
? )
Thanks.