annotate docs/ccguide/atof.refentry @ 2951:63fb45a6007b

coyota: Rename assembler files to .as
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 09 Feb 2014 21:06:29 +0100
parents 1f4a17c1c56d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="atof">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
564
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
3 <refname>Atof</refname>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
4 <refname>Atoi</refname>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
5 <refname>Atol</refname>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
6 <refpurpose>ASCII to number conversions</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
10 <funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
11 <funcprototype>
564
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
12 <funcdef>double <function>atof</function></funcdef>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
13 <paramdef>char *<parameter>ptr</parameter></paramdef>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
14 </funcprototype>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
15
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
16 <funcprototype>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
17 <funcdef>long <function>atol</function></funcdef>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
18 <paramdef>char *<parameter>ptr</parameter></paramdef>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
19 </funcprototype>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
20
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
21 <funcprototype>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
22 <funcdef>int <function>atoi</function></funcdef>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
23 <paramdef>char *<parameter>ptr</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
24 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
25 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
26
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
27 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
29 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
30 <para>
564
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
31 Conversions of the string pointed to by "ptr" to the relevant
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
32 number type are carried out by these functions. They cease to
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
33 convert a number when the first unrecognized character is
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
34 encountered.
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
35 </para>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
36 <para>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
37 Each skips leading spaces and tab characters. Atof()
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
38 recognizes an optional sign followed by a digit string that
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
39 could possibly contain a decimal point, then an optional "e"
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
40 or "E", and optional sign and a digit string. Atol() and atoi()
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
41 recognize an optional sign and a digit string.
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
42 </para>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
43 </refsect1>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
44 <refsect1><title>Caveats</title>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
45 <para>
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
46 Overflow causes unpredictable results. There are no error
1f4a17c1c56d Several functions ready.
roug
parents: 466
diff changeset
47 indications.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
48 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
49 </refsect1>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
50 </refentry>