You could use a union for this purpose
Using a union like that wouldn't technically be making it an ASCII string, ASCII represents text, and there
asc is just pointing to some bytes of another data type.
It's doubtful that any decent compiler wouldn't have this included, so I personally wouldn't hesitate to use it, but it's the OP's choice if he decides to use it or not.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
Offline 1,542 posts
since Mar 2008