aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-29 22:09:59 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:28:30 +1000
commit803ebf09045d48675938ab60c9721f7f22b97a06 (patch)
treec54f18e64448390e2a7b6d9a4649bd7a2eea3034
parent3678ddbdcba93679711417204c1164d47c9a2b74 (diff)
downloadbusybox-w32-803ebf09045d48675938ab60c9721f7f22b97a06.tar.gz
busybox-w32-803ebf09045d48675938ab60c9721f7f22b97a06.tar.bz2
busybox-w32-803ebf09045d48675938ab60c9721f7f22b97a06.zip
win32: add strptime()
-rw-r--r--include/mingw.h2
-rw-r--r--win32/mingw.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 5294d9d6c..a97c347e1 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -250,7 +250,7 @@ int waitpid(pid_t pid, int *status, unsigned options);
250 */ 250 */
251struct tm *gmtime_r(const time_t *timep, struct tm *result); 251struct tm *gmtime_r(const time_t *timep, struct tm *result);
252struct tm *localtime_r(const time_t *timep, struct tm *result); 252struct tm *localtime_r(const time_t *timep, struct tm *result);
253IMPL(strptime,char*,NULL,const char *s UNUSED_PARAM, const char *format UNUSED_PARAM, struct tm *tm UNUSED_PARAM); 253char *strptime(const char *s, const char *format, struct tm *tm);
254 254
255/* 255/*
256 * unistd.h 256 * unistd.h
diff --git a/win32/mingw.c b/win32/mingw.c
index c87ce2a47..0a7345374 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -770,3 +770,8 @@ int mingw_unlink(const char *pathname)
770 chmod(pathname, 0666); 770 chmod(pathname, 0666);
771 return unlink(pathname); 771 return unlink(pathname);
772} 772}
773
774char *strptime(const char *s, const char *format, struct tm *tm)
775{
776 return NULL;
777}