I am currently trying to parse UnicodeData.txt with this format: ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html However, I am hitting a problem in that when I try to read, say a line like the following.
I try to get the data from the fields by code such as the following. The problem is that fields is not getting filled in, and scanf is returning 2.
in is the current line.
char fields; sscanf(in, "%[^;];%[^;];%[^;];%[^;];%[^;];", fields, fields, fields, fields);
I know this is the correct implementation of
scanf(), but is there a way to get this to work, short of making my own