Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>stoi</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  STOI

  .  Summary

  stoi(str <s>);

  .  Description

  The stoi function assumes that <s> is a string which contains an in-
  teger number, written out. It processes the string digit by digit
  and returns that value. For example, stoi("123") would return the
  integer value 123. Processing stops at the first non-digit charac-
  ter. If an empty or invalid string is parsed, a value of 0 is re-
  turned.

  .  Return Value

  An integer value as described above.

  .  Example

  str s[] = "123";
  if (stoi(s) == 123)
   prints("This will always be printed!");

See Also: itos

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson