-
July 15th, 2008, 11:49 AM
#1
Member
C++ prog: copy byte array
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
Similar Threads
-
By ch4r in forum Other Tutorials Forum
Replies: 0
Last Post: May 30th, 2005, 09:23 PM
-
By Dominaterx in forum Newbie Security Questions
Replies: 3
Last Post: November 6th, 2003, 01:54 PM
-
By ntsa in forum Other Tutorials Forum
Replies: 0
Last Post: September 13th, 2002, 09:10 AM
-
By nancen in forum Newbie Security Questions
Replies: 4
Last Post: April 21st, 2002, 02:51 PM
-
By ahmedmamuda in forum AntiVirus Discussions
Replies: 2
Last Post: March 20th, 2002, 02:03 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
|
|