31.01.2013, 20:13
Only way I can honestly think of doing this would be to loop through each character in the string then get its corresponding ASCII decimal value, storing that into another string (strcat).
As for the decoding, that is another problem as each character can have different numbers that take more characters to display (i.e. ' ' = 32, 'i' = 105). You would need some sort of delimiter inserted between characters.
As for the decoding, that is another problem as each character can have different numbers that take more characters to display (i.e. ' ' = 32, 'i' = 105). You would need some sort of delimiter inserted between characters.