[chuck-users] Std.atoi broken?

Atte André Jensen atte.jensen at gmail.com
Mon Nov 27 14:31:16 EST 2006

Spencer Salazar wrote:

> Std.atoi comes from the C standard library atoi, which converts a  
> string of ASCII characters into the represented integer if possible.   
> So the domain of the function is the of set strings like "1", "200",  
> "32768", etc., for which the return value would be 1, 200, 32768,  
> etc.

Thanks for clearing that up. I misunderstood the intention of atoi, sorry...

> As far as getting the ASCII value of a character in a string, I don't  
> believe there is a good way of doing that yet.  It should be possible  
> to do once chuck's support of string operations is implemented, and  
> that is something high on the priority list.


> The only way I can think to do this right now in chuck is to build an  
> associative array, associating each single character string with its  
> ASCII value by hand.

I thought about that, and think I will do that.

peace, love & harmony

http://www.atte.dk      | quintet:      http://www.anagrammer.dk
                         | compositions: http://www.atte.dk/compositions

More information about the chuck-users mailing list