in reply to help porting a line of bitwise C code to perl
Not enough information.
Are the values token4 = 0 & token5 = 32 the values passed into func(), or the values returned by func()?
Because if those are the values coming out of func(), your C program is broken:
But if the values you've given are the values going into func(), then as you've only supplied a declaration (was that form ever legal C?), we cannot tell what might come out for those inputs.
Further more, the only way I can interpret that declaration of func(), is that it is expecting a pointer to an unsigned char as its input. And the likelyhood of 0 and 32 being valid pointers is minimal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help porting a line of bitwise C code to perl
by missingthepoint (Friar) on Sep 05, 2008 at 12:26 UTC | |
by BrowserUk (Patriarch) on Sep 05, 2008 at 16:23 UTC |