[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Still fighting with delaybody mode

krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Cornelius Krasel) writes:

> I agree that error checking is desirable; but what should one do if
> strdup() returns NULL - probably skip the attempt of retrieving the
> article altogether?

Either the graceful exit (not usually employed in leafnode):

errno = ENOMEM;
return /* whatever that function defines as "failed" */

Or, alternatively, provide a yet-to-be-written critstrdup(), which exits
the hard way.

Matthias Andree

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list