- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
// Takes a printf-style format string and returns a formatted string.
char *format(char *fmt, ...) {
char *buf;
size_t buflen;
FILE *out = open_memstream(&buf, &buflen);
va_list ap;
va_start(ap, fmt);
vfprintf(out, fmt, ap);
va_end(ap);
fclose(out);
return buf;
}
Steve_Brown 25.02.2022 19:16 # 0
kcalbCube 25.02.2022 19:36 # 0
Steve_Brown 28.02.2022 12:38 # 0
bormand 28.02.2022 18:04 # 0
kcalbCube 26.02.2022 09:04 # 0
ucnaHckuu_CTblD 26.02.2022 09:43 # 0