|
|
|
|
|
|
|
|
#include "config.h" |
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
#include <ctype.h> |
|
|
#include <ctype.h> |
|
|
|
|
|
#include <wctype.h> |
|
|
#include <errno.h> |
|
|
#include <errno.h> |
|
|
#include <stdint.h> |
|
|
#include <stdint.h> |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (fgets_strip(linebuf, sizeof(linebuf), f_in) != NULL) { |
|
|
while (fgets_strip(linebuf, sizeof(linebuf), f_in) != NULL) { |
|
|
// isolate the attribute name |
|
|
// isolate the attribute name |
|
|
for (p = linebuf; (*p != 0) && !isspace(*p); p++) ; |
|
|
|
|
|
|
|
|
for (p = linebuf; (*p != 0) && !iswspace(*p); p++) ; |
|
|
*p++ = 0; |
|
|
*p++ = 0; |
|
|
|
|
|
|
|
|
if (linebuf[0] == 0) continue; |
|
|
if (linebuf[0] == 0) continue; |