89 |
if (line[0] != '\n') /* ignore empty lines */ |
if (line[0] != '\n') /* ignore empty lines */ |
90 |
buffer = g_strconcat (buffer, line, 0); |
buffer = g_strconcat (buffer, line, 0); |
91 |
|
|
92 |
if (g_strrstr (line, "<EOH>")) /* read past header */ |
if (g_strrstr (line, "<EOH>") || g_strrstr (line, "<eoh>")) /* read past header */ |
93 |
buffer = g_strdup (""); |
buffer = g_strdup (""); |
94 |
|
|
95 |
if (g_strrstr (line, "<EOR>")) /* read past one record */ |
if (g_strrstr (line, "<EOR>") || g_strrstr (line, "<eor>")) /* read past one record */ |
96 |
{ |
{ |
97 |
/* let's do this simple, check if we have multiple '<' */ |
/* let's do this simple, check if we have multiple '<' */ |
98 |
adifline = g_strsplit (buffer, "<", 0); |
adifline = g_strsplit (buffer, "<", 0); |