Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about C programming
#1
I have an "unsigned char* unpackedZlibBlock;" string, but I want to be able to read values from that string (ints, doubles, floats). So let's say that the first four bytes of this string is supposed to be interpreted as an integer. What would be the best way to fetch those four bytes from the string? "strncpy"? "memcpy"?
Reply


Messages In This Thread
Question about C programming - by Fiel - 2009-08-14, 01:30 PM
Question about C programming - by Spaz - 2009-08-14, 01:48 PM
Question about C programming - by Fiel - 2009-08-14, 01:54 PM
Question about C programming - by Fiel - 2009-08-14, 09:18 PM
Question about C programming - by kingdj333 - 2009-08-14, 09:22 PM
Question about C programming - by Russt - 2009-08-14, 09:26 PM
Question about C programming - by Turtally - 2009-08-14, 09:28 PM
Question about C programming - by Fiel - 2009-08-14, 09:35 PM
Question about C programming - by Heidi - 2009-08-14, 10:37 PM
Question about C programming - by Dusk - 2009-08-14, 10:52 PM
Question about C programming - by Fiel - 2009-08-15, 02:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)