On 9 October 2014 10:36, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Mon, 2014-09-15 at 12:47 +0200, Janusz Dziedzic wrote: > >> + while ((data = fgetc(file)) != EOF) { > > Why are you using fgetc() rather than just fread() or read()? > No special reason. Code looks simpler I think than in case of using fread() and feof() functions. BR Janusz -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html