clearified comment for function

This commit is contained in:
bjoernf 2023-09-07 03:14:45 +02:00
parent ac270de18d
commit 2264fc06ef

View File

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