#include <stdio.h>
#include <stdlib.h>
int main(void) {
char wochentag[] = "Freitag";
int tag = 13;
char monat[] = "Mai";
//int jahr = 1927;//unused
char *string
=(char*) malloc(26*sizeof(char));//not need cast from void* in C. also sizeof(char) is always 1 sprintf (string
, "%s %d %s", wochentag
, tag
, monat
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgd29jaGVudGFnW10gPSAiRnJlaXRhZyI7CglpbnQgdGFnID0gMTM7CgljaGFyIG1vbmF0W10gPSAiTWFpIjsKCS8vaW50IGphaHIgPSAxOTI3Oy8vdW51c2VkCgljaGFyICpzdHJpbmc9KGNoYXIqKSBtYWxsb2MoMjYqc2l6ZW9mKGNoYXIpKTsvL25vdCBuZWVkIGNhc3QgZnJvbSB2b2lkKiBpbiBDLiBhbHNvIHNpemVvZihjaGFyKSBpcyBhbHdheXMgMQoJc3ByaW50ZiAoc3RyaW5nLCAiJXMgJWQgJXMiLCB3b2NoZW50YWcsIHRhZywgbW9uYXQpOwoKCXByaW50ZigiJXNcbiIsIHN0cmluZyk7CgoJZnJlZShzdHJpbmcpOwoKCXJldHVybiAwOwp9