Thursday, November 27, 2003, 10:19:22 PM, Dennis Volodomanov wrote: >> and sqlite_decode_binary() wants an unsigned char. Can you help me >> and tell me what to do in order to supply sqlite_decode_binary() >> with the data it wants in a correct fashion?
> Well, I did just cast it to an unsigned char and it seems to work, > but is it safe to cast like this? Casting from (char *) to (unsigned char *) is safe in this situation. sqlite_encode_binary makes (unsigned char)s and sqlite_decode_binary expects (unsigned char)s but the general mechanism of sqlite_step is returning the same data cast as (char)s -- it's safe to cast it back to (unsigned char)s. e --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]