c - xxd binary dump problems -


alt text

is above output in format should expected xxd or presence of bizzare characters on right suggest i've done wrong?

i'm attempting serialise simple linked list , that's output get. failing remove sentinal character "\0" serialisation cause error?

i'm guessing serializing binary not strings, normal. each 2 hex digits on left correspond 1 character on right. one byte, i.e. 8 bits. characters printable (see ascii table bellow), not (shown dots).

ascii table - | hex value - name/char |  | 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| | 08 bs | 09 ht | 0a nl | 0b vt | 0c np | 0d cr | 0e | 0f si | | 10 dle| 11 dc1| 12 dc2| 13 dc3| 14 dc4| 15 nak| 16 syn| 17 etb| | 18 can| 19 em | 1a sub| 1b esc| 1c fs | 1d gs | 1e rs | 1f | | 20 sp | 21  ! | 22  " | 23  # | 24  $ | 25  % | 26  & | 27  ' | | 28  ( | 29  ) | 2a  * | 2b  + | 2c  , | 2d  - | 2e  . | 2f  / | | 30  0 | 31  1 | 32  2 | 33  3 | 34  4 | 35  5 | 36  6 | 37  7 | | 38  8 | 39  9 | 3a  : | 3b  ; | 3c  < | 3d  = | 3e  > | 3f  ? | | 40  @ | 41  | 42  b | 43  c | 44  d | 45  e | 46  f | 47  g | | 48  h | 49  | 4a  j | 4b  k | 4c  l | 4d  m | 4e  n | 4f  o | | 50  p | 51  q | 52  r | 53  s | 54  t | 55  u | 56  v | 57  w | | 58  x | 59  y | 5a  z | 5b  [ | 5c  \ | 5d  ] | 5e  ^ | 5f  _ | | 60  ` | 61  | 62  b | 63  c | 64  d | 65  e | 66  f | 67  g | | 68  h | 69  | 6a  j | 6b  k | 6c  l | 6d  m | 6e  n | 6f  o | | 70  p | 71  q | 72  r | 73  s | 74  t | 75  u | 76  v | 77  w | | 78  x | 79  y | 7a  z | 7b  { | 7c  | | 7d  } | 7e  ~ | 7f del| 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -