Re: Rob printf problem.
- Posted by Robert Craig <rds at ATTCANADA.NET> Jan 08, 2000
- 455 views
Bernie Ryan writes: > If a "C" or a assembler program is returning a > minus one to Euphoria, then > how is Euphoria going to know if the returned value > is a -1 or 4294967295 ? In the C case, you should declare the return type of the C function in define_c_func() as an unsigned C type, e.g. C_UINT, if you want 4294967295 returned, or as C_INT if you want -1 returned. In the machine code case, Euphoria's peek4u() will return 4294967295 from memory, whenever peek4s() returns -1. The C declaration of a C function will tell you if a signed or an unsigned value is being returned. You will need to understand the intent of a machine code routine when interpreting it's result. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com