Skip to content
Snippets Groups Projects
Commit ee0db9cf authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

More work on the systab parser for local_dc

parent 820ada1c
No related branches found
No related tags found
1 merge request!182Update local_dc to allow reading the model list from a systab file.
......@@ -34,11 +34,11 @@ extract_models_from_table( FILE* f, char* dest, int size )
while ( fgets( buffer, sizeof( buffer ), f ) != NULL )
{
buffer[ sizeof( buffer ) - 1 ] = '\0';
/* get rid of trailing \n */
/* end the line at \n or comments */
cur = buffer;
while ( *cur )
{
if ( *cur == '\n' )
if ( *cur == '\n' || *cur == ';' || *cur == '#' )
{
*cur = '\0';
break;
......
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