2 .\" Copyright (c) 2006, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH STOI 9F "Jan 16, 2006"
8 stoi, numtos \- convert between an integer and a decimal string
14 \fBint\fR \fBstoi\fR(\fBchar\fR \fI**str\fR);
19 \fBvoid\fR \fBnumtos\fR(\fBunsigned long\fR \fInum\fR, \fBchar *\fR\fIs\fR);
25 Solaris DDI specific (Solaris DDI).
33 Pointer to a character string to be converted.
42 Decimal number to be converted to a character string.
51 Character buffer to hold converted decimal number.
58 The \fBstoi()\fR function returns the integer value of a string of decimal
59 numeric characters beginning at \fI**str\fR. No overflow checking is done.
60 \fI*str\fR is updated to point at the last character examined.
64 The \fBnumtos()\fR function converts a \fBlong\fR into a null-terminated
65 character string. No bounds checking is done. The caller must ensure there is
66 enough space to hold the result.
70 The \fBstoi()\fR function returns the integer value of the string \fIstr\fR.
74 The \fBstoi()\fR function can be called from user, interrupt, or kernel
79 \fIWriting Device Drivers\fR
83 The \fBstoi()\fR function handles only positive integers; it does not handle