Ok, I've started playing Zork, the old video game, and I have found that it saves its games in Quetzal file format. I have looked at the od
output for it, but can't seem to make any sense out of it. When I Google "quetzal save file", I come across Wikipedia, which gave me this:
The magic-number reading of the files are often shown as:
'IFF data, Z-machine or Glulx saved game file (Quetzal)'
I am sure that it is in Quetzal format, because file
returns: IFF data, Z-machine or Glulx saved game file (Quetzal)
, which is the same as the magic-number (coincedence?).
So, what does magic-number mean, and how can I write a C program to decode it, presumably into an IFZF-like format?