Check The value a pointer returned by struct s_client != 0

view story

http://www.unix.com – Hi guys , i got segment fault , and when i trace , found it happens since the value of pointer which is returned by Struct S_client (*ptr) is zero Code: if (ptr !=0) i know , adding above line of code is not the solution and not correct for the case since above line only check for the pointer to the address of memory which is not expected for me, i would like to check the value of ptr which is returned in struct s_client , not be zero . so anyone know how could i do that , is appreciated? Here is the c programming code : Code: int32_t chk_process (int32_t) { ... stru (HowTos)