clearified comment for function

This commit is contained in:
bjoernf 2023-09-07 03:14:45 +02:00
parent ac270de18d
commit 2264fc06ef
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
#include <time.h>
#include <string.h>
// buffer needs to contain this string: "xxxxxxxxTxxxxxx"
// or "YYYYmmddTHHMMSSZ"
// buffer needs to contain a string with a strlen of 15 (format: "xxxxxxxxTxxxxxx")
// or a strlen of 16 (format: "YYYYmmddTHHMMSSZ")
void get_date(char buffer[]) {
// add 1 because strlen does not include the null character
size_t buffer_size = strlen(buffer) + 1;