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
#define _TIME_H
#include <stddef.h>
typedef long int clock_t;
typedef long int time_t;
@ -36,6 +38,7 @@ extern "C"
struct tm* localtime(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
}

View File

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