First of all I'm sorry for the confusing title. I'm reading Adobe's specs of SWF and I saw a statement I'm not really sure how to code.
A one-byte version number follows the signature. The version number is not an ASCII character, but an 8-bit number. For example, for SWF 4, the version byte is 0x04, not the ASCII character “4” (0x34).
This effectively means that 0x20
is not a space, but actually the number 20
.
Now, let's say I have this:
unsigned char c[1] = { 0x20 };
How would I get an integer with the value 20
out of c
?
EDIT:
It turns out that not what I'm looking for. The byte with the version actually follows this scheme: Chart of SWF versions to Flash versions