strptime.c (196752) | strptime.c (207830) |
---|---|
1/* 2 * Powerdog Industries kindly requests feedback from anyone modifying 3 * this function: 4 * 5 * Date: Thu, 05 Jun 1997 23:17:17 -0400 6 * From: Kevin Ruddy <kevin.ruddy@powerdog.com> 7 * To: James FitzGibbon <james@nexis.net> 8 * Subject: Re: Use of your strptime(3) code (fwd) --- 45 unchanged lines hidden (view full) --- 54#include <sys/cdefs.h> 55#ifndef lint 56#ifndef NOID 57static char copyright[] __unused = 58"@(#) Copyright (c) 1994 Powerdog Industries. All rights reserved."; 59static char sccsid[] __unused = "@(#)strptime.c 0.1 (Powerdog) 94/03/27"; 60#endif /* !defined NOID */ 61#endif /* not lint */ | 1/* 2 * Powerdog Industries kindly requests feedback from anyone modifying 3 * this function: 4 * 5 * Date: Thu, 05 Jun 1997 23:17:17 -0400 6 * From: Kevin Ruddy <kevin.ruddy@powerdog.com> 7 * To: James FitzGibbon <james@nexis.net> 8 * Subject: Re: Use of your strptime(3) code (fwd) --- 45 unchanged lines hidden (view full) --- 54#include <sys/cdefs.h> 55#ifndef lint 56#ifndef NOID 57static char copyright[] __unused = 58"@(#) Copyright (c) 1994 Powerdog Industries. All rights reserved."; 59static char sccsid[] __unused = "@(#)strptime.c 0.1 (Powerdog) 94/03/27"; 60#endif /* !defined NOID */ 61#endif /* not lint */ |
62__FBSDID("$FreeBSD: head/lib/libc/stdtime/strptime.c 196752 2009-09-02 04:56:30Z ache $"); | 62__FBSDID("$FreeBSD: head/lib/libc/stdtime/strptime.c 207830 2010-05-09 22:01:35Z edwin $"); |
63 64#include "namespace.h" 65#include <time.h> 66#include <ctype.h> 67#include <errno.h> 68#include <stdlib.h> 69#include <string.h> 70#include <pthread.h> --- 332 unchanged lines hidden (view full) --- 403 len) == 0) 404 break; 405 } 406 } else { 407 len = strlen(tptr->month[i]); 408 if (strncasecmp(buf, tptr->month[i], 409 len) == 0) 410 break; | 63 64#include "namespace.h" 65#include <time.h> 66#include <ctype.h> 67#include <errno.h> 68#include <stdlib.h> 69#include <string.h> 70#include <pthread.h> --- 332 unchanged lines hidden (view full) --- 403 len) == 0) 404 break; 405 } 406 } else { 407 len = strlen(tptr->month[i]); 408 if (strncasecmp(buf, tptr->month[i], 409 len) == 0) 410 break; |
411 } 412 } 413 /* 414 * Try the abbreviated month name if the full name 415 * wasn't found and Oalternative was not requested. 416 */ 417 if (i == asizeof(tptr->month) && !Oalternative) { 418 for (i = 0; i < asizeof(tptr->month); i++) { |
|
411 len = strlen(tptr->mon[i]); 412 if (strncasecmp(buf, tptr->mon[i], 413 len) == 0) 414 break; 415 } 416 } 417 if (i == asizeof(tptr->month)) 418 return 0; --- 148 unchanged lines hidden --- | 419 len = strlen(tptr->mon[i]); 420 if (strncasecmp(buf, tptr->mon[i], 421 len) == 0) 422 break; 423 } 424 } 425 if (i == asizeof(tptr->month)) 426 return 0; --- 148 unchanged lines hidden --- |