Am 10.04.2013 12:20, schrieb Simon Kelley: > ... and the lesson here, is don't write an unsigned integer to a text > file and then parse is back in using atoi(). D'oh! atoi does not do error checking (and is documented that way), unlike strto(u)l, so arguably every use of atoi() is a bug in itself.