diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-16 12:12:29 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-16 12:12:29 +0000 |
commit | f9fedb332a1f46758b1014a6ccf999b57dd3ff54 (patch) | |
tree | 106bf198a3ebb480f24557f87e6c10c4e1987f32 /missing | |
parent | 00aaf208f74d5933a2bb67604a30290b9e1a530a (diff) | |
download | ruby-openssl-history-f9fedb332a1f46758b1014a6ccf999b57dd3ff54.tar.gz |
* selfdipatch BN implementation (test only)
* removed strncasecmp (for WIN32 made alias to _strnicmp)
* fixed missing/strptime.c (Hynek Rostinsky)
Diffstat (limited to 'missing')
-rw-r--r-- | missing/strncasecmp.c | 19 | ||||
-rw-r--r-- | missing/strptime.c | 3 |
2 files changed, 3 insertions, 19 deletions
diff --git a/missing/strncasecmp.c b/missing/strncasecmp.c deleted file mode 100644 index e4d1bb9..0000000 --- a/missing/strncasecmp.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <ctype.h> - -int -strncasecmp(p1, p2, len) - char *p1; - char *p2; - int len; -{ - for (; len != 0; len--, p1++, p2++) { - if (toupper(*p1) != toupper(*p2)) { - return toupper(*p1) - toupper(*p2); - } - if (*p1 == '\0') { - return 0; - } - } - return 0; -} - diff --git a/missing/strptime.c b/missing/strptime.c index 29768e8..a8995e1 100644 --- a/missing/strptime.c +++ b/missing/strptime.c @@ -342,6 +342,9 @@ strptime(char *buf, char *fmt, struct tm *tm) } if (c == 'Y') i -= 1900; + else if (c < 69) /*c=='y', 00-68 is for 20xx, the rest is for 19xx*/ + i += 100; + if (i < 0) return 0; |