OSDN Git Service

(split) Fixed #25191 (typo in fenv.3).
[linuxjm/LDP_man-pages.git] / release / man3 / atoi.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Mon Mar 29 22:39:41 1993, David Metcalfe
28 .\" Modified Sat Jul 24 21:38:42 1993, Rik Faith (faith@cs.unc.edu)
29 .\" Modified Sun Dec 17 18:35:06 2000, Joseph S. Myers
30 .\"
31 .\" Japanese Version Copyright (c) 1996 Kentaro OGAWA
32 .\"         all rights reserved.
33 .\" Translated Sat, 13 Jul 1996 22:47:32 +0900
34 .\"         by Kentaro OGAWA <k_ogawa@oyna.cc.muroran-it.ac.jp>
35 .\" Updated Tue 30 Jan 2001 JST by Kentaro Shirakata <argrath@ub32.org>
36 .\"
37 .TH ATOI 3  2010-09-20 "GNU" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 atoi, atol, atoll, atoq \- Ê¸»úÎó¤òÀ°¿ô·¿¤ËÊÑ´¹¤¹¤ë
40 .SH ½ñ¼°
41 .nf
42 .B #include <stdlib.h>
43 .sp
44 .BI "int atoi(const char *" nptr );
45 .br
46 .BI "long atol(const char *" nptr );
47 .br
48 .BI "long long atoll(const char *" nptr );
49 .br
50 .BI "long long atoq(const char *" nptr );
51 .fi
52 .sp
53 .in -4n
54 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
55 .RB ( feature_test_macros (7)
56 »²¾È):
57 .in
58 .sp
59 .ad l
60 .BR atoll ():
61 .RS 4
62 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
63 _POSIX_C_SOURCE\ >=\ 200112L;
64 .br
65 or
66 .I cc\ -std=c99
67 .RE
68 .ad
69 .SH ÀâÌÀ
70 .BR atoi ()
71 ´Ø¿ô¤Ï¡¢\fInptr\fP ¤Ë¤è¤Ã¤Æ»Ø¼¨¤µ¤ì¤ëʸ»úÎó¤Î¤Ï¤¸¤á¤ÎÉôʬ¤ò
72 .I int
73 ·¿À°¿ô¤ËÊÑ´¹¤¹¤ë¡£
74 ¤³¤Î¿¶¤ëÉñ¤¤¤Ï¡¢
75 .BR atoi ()
76 ´Ø¿ô¤¬¥¨¥é¡¼¤ò¸«¤Ä¤±¤Ê¤¤ÅÀ°Ê³°¤Ï¡¢
77 .sp
78 .in +4n
79 strtol(nptr, (char **) NULL, 10);
80 .in
81 .sp
82 ¤ÈƱ¤¸¤Ç¤¢¤ë¡£
83 .PP
84 .BR atol ()
85 ´Ø¿ô¤È
86 .BR atoll ()
87 ´Ø¿ô¤Ï
88 .BR atoi ()
89 ¤ÈƱÍͤﶤëÉñ¤¤¤ò¤¹¤ë¤¬¡¢
90 ʸ»úÎó¤Î¤Ï¤¸¤á¤ÎÉôʬ¤ò¤½¤ì¤¾¤ì \fIlong\fP ¤ä \fIlong long\fP ¤ËÊÑ´¹¤¹¤ë¡£
91 .BR atoq ()
92 ¤Ï
93 .BR atoll ()
94 ¤Î¸Å¤¤Ì¾Á°¤Ç¤¢¤ë¡£
95 .SH ÊÖ¤êÃÍ
96 ÊÑ´¹¤µ¤ì¤¿ÃÍ¡£
97 .SH ½àµò
98 SVr4, POSIX.1-2001, 4.3BSD, C99.
99 C89 ¤È POSIX.1-1996 ¤Ë¤Ï
100 .BR atoi ()
101 ¤È
102 .BR atol ()
103 ¤À¤±¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
104 .BR atoq ()
105 ¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£
106 .SH Ãí°Õ
107 Èóɸ½à¤Ç¤¢¤ë
108 .BR atoq ()
109 ´Ø¿ô¤Ï libc 4.6.27 ¤ä glibc 2 ¤Ë¤Ï´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤¬¡¢
110 libc5 ¤È libc 4.7 ¤Ë¤Ï¸ºß¤·¤Æ¤¤¤ë (¤¿¤À¤· libc 5.4.44 ¤Þ¤Ç¤Ï
111 \fI<stdlib.h>\fP ¤Î¥¤¥ó¥é¥¤¥ó´Ø¿ô¤Î¤ß¤Ç¤¢¤ë)¡£
112 .BR atoll ()
113 ´Ø¿ô¤Ï glibc 2 ¤Î¥Ð¡¼¥¸¥ç¥ó 2.0.2 ¤«¤é¸ºß¤·¤Æ¤¤¤ë¤¬¡¢
114 libc4 ¤ä libc5 ¤Ë¤Ï¸ºß¤·¤Ê¤¤¡£
115 .SH ´ØÏ¢¹àÌÜ
116 .BR atof (3),
117 .BR strtod (3),
118 .BR strtol (3),
119 .BR strtoul (3)