libc: Stub out strftime

This commit is contained in:
apio 2022-10-23 10:01:03 +02:00
parent 8f17578e2e
commit fa35e883d7
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#ifndef _TIME_H #ifndef _TIME_H
#define _TIME_H #define _TIME_H
#include <stddef.h>
typedef long int clock_t; typedef long int clock_t;
typedef long int time_t; typedef long int time_t;
@ -34,8 +36,9 @@ extern "C"
/* FIXME: For now, is an alias for clock(), but in seconds. */ /* FIXME: For now, is an alias for clock(), but in seconds. */
time_t time(time_t* tloc); time_t time(time_t* tloc);
struct tm* localtime(const time_t* timep); // Not implemented. struct tm* localtime(const time_t* timep); // Not implemented.
struct tm* gmtime(const time_t* timep); // Not implemented. struct tm* gmtime(const time_t* timep); // Not implemented.
size_t strftime(char* str, size_t max, const char* format, const struct tm* time); // Not implemented.
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -28,4 +28,9 @@ extern "C"
{ {
NOT_IMPLEMENTED("gmtime"); NOT_IMPLEMENTED("gmtime");
} }
size_t strftime(char*, size_t, const char*, const struct tm*)
{
NOT_IMPLEMENTED("strftime");
}
} }