T
thomas
Once I saw some code like this.
---code--
char pid[8];
char url[1001];
char url2[873];
while ( scanf("\"%[^\"]\",\"%[^\"]\",\"%s\n", pid, url, url2) > 0 ) {
//blabla
}
----code---
There are a lot of messy formating things in the scanf call.
While there is only one "%s" input specifier, can it work to fill the
three strings?
---code--
char pid[8];
char url[1001];
char url2[873];
while ( scanf("\"%[^\"]\",\"%[^\"]\",\"%s\n", pid, url, url2) > 0 ) {
//blabla
}
----code---
There are a lot of messy formating things in the scanf call.
While there is only one "%s" input specifier, can it work to fill the
three strings?