>Does anyone know the best way to deal with this?
Give this a try.
Regards,
Steve Mann
/***********************************************************************
* FUNCTION: UTStringToQuad
*
* DESCRIPTION: This routine converts a string to a four-byte quad.
*
* RETURNED: nothing
***********************************************************************/
void UTStringToQuad
(
UInt32 * quad, // ( in/out ) quad to contain the results
Char * str // ( in ) string to convert
)
{
struct converter { char a, b, c, d; } *c;
c = ( struct converter * ) quad;
c->a = str [ 0 ];
c->b = str [ 1 ];
c->c = str [ 2 ];
c->d = str [ 3 ];
return;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/