Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ atol(3C) — UTek 4.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ldexp(3c)

scanf(3s)



ATOF(3C)                COMMAND REFERENCE                ATOF(3C)



NAME
     atof, atoi, atol - convert ASCII to numbers

SYNOPSIS
     double atof(nptr)
     char *nptr;

     atoi(nptr)
     char *nptr;

     long atol(nptr)
     char *nptr;

DESCRIPTION
     These functions convert a string pointed to by nptr to
     floating, integer, and long integer representation
     respectively.  The first unrecognized character ends the
     string.

     Atof recognizes an optional string of spaces, then an
     optional sign, then a string of digits optionally containing
     a decimal point, then an optional e or E followed by an
     optionally signed integer.

     Atoi and atol recognize an optional string of spaces, then
     an optional sign, then a string of digits.

DIAGNOSTICS
     Atof calls ldexp(3c), which sets errno on overflow or
     underflow.

CAVEATS
     There are no provisions for overflow in atol or atoi.

SEE ALSO
     ldexp(3c) and scanf(3s).



















Printed 3/13/89                                                 1





































































%%index%%
na:264,95;
sy:359,903;
de:1262,794;
di:2056,302;
ca:2358,228;
se:2586,153;
%%index%%000000000108

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026