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()
NULL is definitely a pointer. So if your function is expected to return a pointer and for some reason cannot, it should return the obvious "invalid pointer", which is NULL.