Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XSH asctime

To: yyyyyyyy@xxxxxxxxxxxx
Subject: Re: Defect in XSH asctime
From: "Clive D.W. Feather" <yyyyy@xxxxxxxxx>
Date: Thu, 26 Jun 2003 09:14:56 +0100
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <200306201751.SAA13800@xxxxxx>
yyyyyyyy@xxxxxxxxxxxx said:
> Defect code :  3. Clarification required
> 
> Under RETURN VALUE, it states, "Upon successful completion, asctime() shall 
>return a pointer to the string." The phrase "Upon successful completion" 
>implies that unsuccessful completion is possible, in which case it should 
>state what it returns. If successful completion is the only possibility, the 
>phrase should be dropped, as it's confusing.

This was addressed in a C Defect Report. The decision was that the behaviour
is undefined (including cases such as when the year has 5 digits and so the
provided space is insufficient).

-- 
Clive D.W. Feather  | Work:  <yyyyy@xxxxxxxxx>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <yyyyy@xxxxxxxxxx>  | *** NOTE CHANGE ***
Demon Internet      | WWW: http://www.davros.org | Fax:    +44 870 051 9937
Thus plc            |                            | Mobile: +44 7973 377646

<Prev in Thread] Current Thread [Next in Thread>