This commit is contained in:
Nikita Ivanov 2022-09-02 01:46:02 +05:00
parent 5d96d12b51
commit 285d72df3a
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -31,7 +31,7 @@ void getvarname(char *res, char *prefix, char *filename)
res[i] = '\0';
}
void print_byte(char c)
void print_char(char c)
{
printf("0x%x, ", c);
}
@ -47,7 +47,7 @@ void print_file(char *f)
}
while ((c = fgetc(file)) != EOF)
print_byte(c);
print_char(c);
fclose(file);
}
@ -62,7 +62,7 @@ void embed_file(char *prefix, char *filename, char *helpers)
if (helpers) {
print_file(helpers);
print_byte('\n');
print_char('\n');
}
print_file(filename);