I need a function in SIMPLE C that will take a long value and convert it to the equivalent ASCII values (4 of them - Longs are 4 bytes for a 32 bit processor). I don't actually want the bytes to be written to memory or anything, I just want to be able to know what they are. Once I know the Byte values, I need to be able to obtain the long value again. So this needs to work both directions. My goal in the end is to be able to use this method to calculate arrays from values larger than the range of the long data type. I have a precision package that will let me work with values this large, so all I need to have someone program is the algorithm to change a long value to a byte array and vice versa. Thank you - Any questions feel free to ask. Also, I would like them to be in functions rather than an executable. And please make it as simple as possible to follow.
## Deliverables
Complete source code of all work done. Complete copyrights to all work purchased.
## Platform
My machine is a P4, running WinXP (Don't know if it makes any difference)
## Deadline information
Please write this in C and as simple and easy to follow as possible.