Re: malloc()/realloc() - have I got this right?



On 30 May 2008 at 21:53, CBFalconer wrote:
Ridiculous. Most use of the function simply runs until a non-zero
is returned, after which the operation ends. It may be because of
EOF, or because of error. In either case, no further input is
available.

If you're in a restaurant and can't get your meal either because they've
run out of salmon or because the kitchen's on fire, you might find it
useful to be able to distinguish between those two error conditions.

.



Relevant Pages