hey Guys,

here is my problem; i have read some bytes from a file to a char array and i want to copy the bytes exactly to another char array. i would be grateful to whoever can tell me the solution to this problem.

as, using strcpy() or strncpy(), will only copy the bytes up to the first null byte and then stop. and to use write() i would need a "file descriptor" for the destination array, and i am not sure it is possible to create a file descriptor for a program variable?


thanks in advance,

- user0182