Ruby to C help
First time post, hopefully this won't hurt too bad...
I have the following Ruby function,
My question is what would the equivalent C function of this be?
More specifically I have an idea of what it does, but I'm not completely sure.
Any and all help would be appreciated.
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:
Note, however, that this C "equivalent" returns a char, not a string.