I'm using the example sketch included in the Arduino 0022 download.
https://github.com/arduino/Arduino/blob/master/build/shared/examples/8.Strings/StringToInt/StringToInt.pde
See line #36