Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] sscanf
Hi,
I'm experiencing problems reading the configuration files, the sscanf
function doesn't seem to read the ':' separated config files. I'm using
vdr-1.2.6 with uclibc-0.0.23, which claims to have implemented the %a
feature (but hacking things into the %s way, doesn't solve anything either)
I tried this little test program, but it also fails, also on vedora-linux
and under winnt (I don't get the frequency)..I don't see how the
sscanf(s, "%a[^:]:%d :%a[^:]:%a[^:] :%d :%a[^:]:%a[^:]:%d :%d :%d :%d :%d
:%d ", &namebuf, &frequency, ¶mbuf, &sourcebuf, &srate, &vpidbuf,
&apidbuf, &tpid, &ca, &sid, &nid, &tid, &rid);
..line in channels.c could have ever worked??
int main(void)
{
int fields;
char namebuf[50];
int frequency=0;
char *s = "701 (TV):561833";
fields = sscanf(s, "%s[^:]:%d ", namebuf, &frequency );
printf("namebuf:%s frequency:%d", namebuf, frequency );
}
Is this a known problem, with known solution?, any idea's?
Greetz,
Sieme
Home |
Main Index |
Thread Index