I was wondering if you could tell me when you are able to return NULL, as the result of a function in C.
NULL
For instance int lenght() can\'t retur
int lenght()
When are you able to return NULL as the returning value of a C function
In general, if and only if the function returns a pointer type:
T * function( | void>); /* With T being any valid type. */
There are other, corner cases, which depend on the C implementation in use.