Skip to content
Snippets Groups Projects
Commit c10c705a authored by 20041679's avatar 20041679
Browse files

addes space to format string

parent f5eb635f
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ Person person_read(FILE *f) {
Person person;
char format[5 + 5 + 3];
sprintf(
format, "%%%zus%%%zus%%hu",
format, "%%%zus %%%zus %%hu",
ARR_LEN(person.first_name),
ARR_LEN(person.last_name)
);
......@@ -56,5 +56,4 @@ int main(void) {
person_print(f_out, p1);
fclose(f_out);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment