1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-26 13:18:31 +00:00

Added strftime

git-svn-id: svn://svn.cc65.org/cc65/trunk@1512 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-11-13 13:08:46 +00:00
parent e7db3d83ea
commit 5dba474030
4 changed files with 252 additions and 2 deletions
+10 -1
View File
@@ -39,9 +39,18 @@
/* Standard data types */
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef int ptrdiff_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef char wchar_t;
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
/* NULL pointer */
#ifdef NULL
@@ -59,4 +68,4 @@ typedef unsigned size_t;
+8 -1
View File
@@ -44,6 +44,12 @@
#endif
#define NULL 0
/* size_t is needed */
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
typedef unsigned long time_t;
typedef unsigned long clock_t;
@@ -91,7 +97,7 @@ unsigned _clocks_per_sec (void);
time_t _systime (void);
/* Similar to time(), but:
/* Similar to time(), but:
* - Is not ISO C
* - Does not take the additional pointer
* - Does not set errno when returning -1
@@ -104,6 +110,7 @@ char* __fastcall__ ctime (const time_t* timep);
struct tm* __fastcall__ gmtime (const time_t* timep);
struct tm* __fastcall__ localtime (const time_t* timep);
time_t __fastcall__ mktime (struct tm* timep);
size_t __fastcall__ strftime (char* buf, size_t bufsize, const char* format, const struct tm* tm);
time_t __fastcall__ time (time_t* t);