This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 27 Jan 2015 16:05, Vincent Bernat wrote:
> In ISO 8601, the timezone can be 'Z' instead of using
> digits. 2014-08-17T12:33:12+0000 is often expressed as
> 2014-08-17T12:33:12Z.
code wise, this looks good to me. style problems though ...
> --- a/time/strptime_l.c
> +++ b/time/strptime_l.c
>
> - also specified. */
> + also specified. 'Z' is equivalent to +0000. */
GNU style puts two spaces after the period
> {
> val = 0;
> while (ISSPACE (*rp))
> ++rp;
> + if (*rp == 'Z')
> + {
> + rp++;
> + break;
> + }
indentation is incorrect -- you need to start with a tab
minor nit: this code would do ++rp instead of rp++
-mike
Attachment:
signature.asc
Description: Digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |