mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-23 08:18:34 +01:00
Minor
This commit is contained in:
parent
5d96d12b51
commit
285d72df3a
@ -31,7 +31,7 @@ void getvarname(char *res, char *prefix, char *filename)
|
|||||||
res[i] = '\0';
|
res[i] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_byte(char c)
|
void print_char(char c)
|
||||||
{
|
{
|
||||||
printf("0x%x, ", c);
|
printf("0x%x, ", c);
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ void print_file(char *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((c = fgetc(file)) != EOF)
|
while ((c = fgetc(file)) != EOF)
|
||||||
print_byte(c);
|
print_char(c);
|
||||||
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ void embed_file(char *prefix, char *filename, char *helpers)
|
|||||||
|
|
||||||
if (helpers) {
|
if (helpers) {
|
||||||
print_file(helpers);
|
print_file(helpers);
|
||||||
print_byte('\n');
|
print_char('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
print_file(filename);
|
print_file(filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user