ATOF.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ATOF(3)                   Minix Programmer's Manual                    ATOF(3)
  2. NAME
  3.      atof, atoi, atol - convert ASCII to numbers
  4. SYNOPSIS
  5.      #include <stdlib.h>
  6.      double atof(const char *nptr)
  7.      int atoi(const char *nptr)
  8.      long atol(const char *nptr)
  9. DESCRIPTION
  10.      These functions convert a string pointed to by nptr to floating, integer,
  11.      and  long  integer  representation  respectively.  The first unrecognized
  12.      character ends the string.
  13.      Atof recognizes an optional string of spaces, then an optional sign, then
  14.      a  string  of  digits  optionally  containing  a  decimal  point, then an
  15.      optional `e' or `E' followed by an optionally signed integer.
  16.      Atoi and atol recognize an optional string of spaces,  then  an  optional
  17.      sign, then a string of digits.
  18. SEE ALSO
  19.      strtol(3), strtod(3), scanf(3).
  20. BUGS
  21.      There are no provisions for overflow.
  22.                                 May 15, 1985                                 1