fix2
This commit is contained in:
parent
35972812bb
commit
708fc9ab3c
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -7,7 +7,7 @@
|
||||
|
||||
int main() {
|
||||
char buffer[20];
|
||||
struct tm tm;
|
||||
struct tm tm = {0};
|
||||
|
||||
char *retval = fgets(buffer, sizeof(buffer), stdin);
|
||||
|
||||
@ -23,8 +23,11 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
tm.tm_isdst = -1;
|
||||
tm.tm_mday += 7;
|
||||
|
||||
mktime(&tm);
|
||||
|
||||
strftime(buffer, sizeof(buffer), "%e.%m.%-Y", &tm);
|
||||
puts(buffer);
|
||||
putc('\n', stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user