I am currently learning C++ and I saw there was a line of codes writing on the textbook:
ssize_t num = index; // index could be -1 in the example of my textbook`
The num
is a variable to contain the index return from a traversing. However,after I copy this code to my C++ compiler, it says it can not find the definition of ssize_t
. And I can hardly find there is any definitions about ssize_t
in C++. I saw that it could be use in C but not C++. Right?