So I have a hashing function whereby I have to take a string as my key, get the sum of it's ASCII values and modulo by a given size.
I realize this is relatively simple and can be accomplished through the use of sprintf but I cannot find any clear examples on how to do so.
If anyone can give me an example it would be much appreciated as this is all I really need help on, and I can figure out the rest from there.
Edit: to be clear, I only need help on figuring out the string to ascii conversion