2007-06-29

the fun continues

/* Convert users input into ascii, hex and decimal. */
I may actually be getting this programming thing down. It started life as a perl script, moved to python, and now its redone in glorious C.
$ cfun 
Usage: cfun [string] [hex] [decimal]
$ cfun syndrowm.com
ascii: syndrowm.com
hex: 73 79 6e 64 72 6f 77 6d 2e 63 6f 6d
dec: 115 121 110 100 114 111 119 109 46 99 111 109
oct: 163 171 156 144 162 157 167 155 56 143 157 155
$ cfun 0x73796e64726f776d2e636f6d
ascii: syndrowm.com
hex: 73 79 6e 64 72 6f 77 6d 2e 63 6f 6d
dec: 115 121 110 100 114 111 119 109 46 99 111 109
oct: 163 171 156 144 162 157 167 155 56 143 157 155

No comments: