On Wed, May 6, 2009 at 11:20 AM, Stephane Lesoinne <[email protected]> wrote: > > If you want to convert a string representation of a number to his > integer equivalent, you'll have to use the atoi(...) function.
*I* didn't want to do anything. atoi() will do nothing if the data being read in is in binary. As the OP mentioned, as is still mentioned in the post you quote. > > Paul Herring a écrit : >> >> >> On Wed, May 6, 2009 at 10:59 AM, Jos Timanta Tarigan >> <[email protected] <mailto:jos_t_tarigan%40yahoo.com>> wrote: >> > >> > hi, >> > >> > so im currently try to read a binary file and try to represent it in >> rgb image. i save the >> > file into char[length] and then try to convert it to int to get >> 0-255 value. is it ok to do it >> > explicitly eg. (int)thisChar ? >> >> In all likelihood, no. <snip> -- PJH http://shabbleland.myminicity.com/com http://www.chavgangs.com/register.php?referer=9375
