strptime() for minix.

This commit is contained in:
Ben Gras 2010-06-22 21:42:49 +00:00
parent 08f731bae0
commit ddc3f62290
3 changed files with 12 additions and 1 deletions

View file

@ -66,6 +66,8 @@ _PROTOTYPE( struct tm *localtime_r, (const time_t *const timep,
struct tm *tmp) );
_PROTOTYPE( size_t strftime, (char *_s, size_t _max, const char *_fmt,
const struct tm *_timep) );
_PROTOTYPE(char *strptime, (const char *buf, const char *format,
struct tm *timeptr) );
#ifdef _POSIX_SOURCE
_PROTOTYPE( void tzset, (void) );

View file

@ -5,4 +5,5 @@ SRCS+= \
ftime.c \
asctime.c \
localtime.c \
strftime.c
strftime.c \
strptime.c

View file

@ -34,10 +34,18 @@
#include <config.h>
#endif
#include <ctype.h>
#ifdef __minix
#include <time.h>
#include <string.h>
#include <stdlib.h>
#endif
#ifndef __minix
#include "roken.h"
__RCSID("$Heimdal: strptime.c,v 1.2 1999/11/12 15:29:55 assar Exp $"
"$NetBSD: strptime.c,v 1.1.1.3 2002/09/12 12:41:42 joda Exp $");
#endif
static const char *abb_weekdays[] = {
"Sun",