Long Value to Byte Array

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.

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Veja mais: what is the algorithm, what is a programming algorithm, what is an array in programming, what is an algorithm in programming, what is an algorithm, what is a method in programming, what is algorithm in programming, what is a function in programming, what is a algorithm in programming, programming array, programming algorithm questions, goal programming, c programming arrays, c programming array, c algorithm questions, arrays in programming, arrays in c programming, array programming, array in c programming, array c programming

Acerca do Empregador:
( 9 comentários ) United States

ID do Projeto: #2851006

Concedido a:


See private message.

$12 USD em 14 dias
(35 Comentários)

2 freelancers estão ofertando em média $10 para esse trabalho


See private message.

$8.5 USD in 14 dias
(6 Comentários)