diff options
author | max99x <max99x@gmail.com> | 2011-08-18 09:15:47 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-18 09:15:47 +0300 |
commit | fb43e95ee9c5ead2dda276ef4c32275996a21567 (patch) | |
tree | 5364ed3dcc7996f72c0d9d9684220a0d42d5a17a | |
parent | 89df6e92fa856eb5dce5a4becac9506f03327167 (diff) |
Added always-failing stubs for str[fp]time() and getdate().
-rw-r--r-- | src/library.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 1d3be1ee..8bb4b1da 100644 --- a/src/library.js +++ b/src/library.js @@ -4562,7 +4562,26 @@ LibraryManager.library = { return -1; }, - // TODO: Implement strftime(), strptime() and getdate(). + strftime: function(s, maxsize, format, timeptr) { + // size_t strftime(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html + // TODO: Implement. + return 0; + }, + + strptime: function(buf, format, tm) { + // char *strptime(const char *restrict buf, const char *restrict format, struct tm *restrict tm); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html + // TODO: Implement. + return 0; + }, + + getdate: function(string) { + // struct tm *getdate(const char *string); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/getdate.html + // TODO: Implement. + return 0; + }, // ========================================================================== // sys/time.h |