
May 18th, 2008, 11:41 PM
|
|
Contributing User
|
|
Join Date: Jan 2006
Location: New Jersey
|
|
What that function does is converts an ASCII code to a character. You can also do this in Ruby with simply "num.chr".
In C, you don't need a function to do this, you can cast num to a character:
C Code:
Original
- C Code |
|
|
|
Note, however, that this C "equivalent" returns a char, not a string.
|