mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-25 17:43:44 +02:00
tools/ant-gui/ant-gui.c (generate): ignore coments (lines beginning with "#")
This commit is contained in:
parent
86e1466388
commit
89fffcbcd9
@ -177,6 +177,8 @@ static void generate(uint8_t ***imgs, int *n, const char *path)
|
||||
exit(1);
|
||||
}
|
||||
while (fgets(buf, sizeof(buf), file)) {
|
||||
if (buf[0] == '#')
|
||||
continue;
|
||||
nl = strchr(buf, '\n');
|
||||
if (nl)
|
||||
*nl = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user