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

Re: sys_errlist (Re: gcc (Re: porting?))

Mikko Larjava <mitala@nic.funet.fi> writes:

|> On 13 Feb 1998, Andreas Schwab wrote:
|>> |> Declare strerror() as 
|>> |> const char *strerror(int)
|>> You can't, the standard says `char *strerror(int)'.  The only option we
|>> have is to throw in a cast.

|> Is there a standard for sys_errlist declaration? Does it have to be 
|> char *sys_errlist..? Most of the programs seem to want it like that.

AFAIK there is no standard that contains sys_errlist. But BSD-4.4 based
systems have it declared as `const char *const sys_errlist[]'.

Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"