|
-
January 31st, 2008, 06:49 AM
#2
Re: VB to C
Using standard C
Use sscanf with convertion parameter %X or strtol to convert the hex strings to numbers.
Use pow to raise the base with the exponent.
Use % to mod the number.
Use sprintf with convertion parameter %X to convert the number back to a hex string.
Your C code will be very small compared to the VB you posted.
Last edited by JohnW@Wessex; January 31st, 2008 at 06:59 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|