Re: [ILUG] C question [puzzled by strdup()]

From: Paul Jakma (paulj at domain alphyra.ie)
Date: Thu 02 Aug 2001 - 12:55:08 IST


On Thu, 2 Aug 2001, kevin lyda wrote:

> struct passwd *getpwnam(const char * name)
[snip]
> return ENOMEM;

hmmm... IANAP but doesn't that violate the declaration?

if it's declared as returning a pointer, can you strictly still return
an error code (which most likely'd be an integer)?

> kevin

--paulj



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:27 GMT