Returns the stack size specified in a thread attribute object.
#include <pthread.h> int pthread_attr_getstacksize ( const pthread_attr_t *attr, size_t *stacksize);
(IN) Points to the attribute object.
(OUT) Points to the size of the stack.
If successful, returns zero; otherwise returns a nonzero error code:
The pthread_attr_init function initializes the stack size to a default size specified at compile time.