109919f81Smillert.\" Copyright (c) 1990, 1991 The Regents of the University of California. 209919f81Smillert.\" All rights reserved. 309919f81Smillert.\" 409919f81Smillert.\" This code is derived from software contributed to Berkeley by 509919f81Smillert.\" the American National Standards Committee X3, on Information 609919f81Smillert.\" Processing Systems. 709919f81Smillert.\" 809919f81Smillert.\" Redistribution and use in source and binary forms, with or without 909919f81Smillert.\" modification, are permitted provided that the following conditions 1009919f81Smillert.\" are met: 1109919f81Smillert.\" 1. Redistributions of source code must retain the above copyright 1209919f81Smillert.\" notice, this list of conditions and the following disclaimer. 1309919f81Smillert.\" 2. Redistributions in binary form must reproduce the above copyright 1409919f81Smillert.\" notice, this list of conditions and the following disclaimer in the 1509919f81Smillert.\" documentation and/or other materials provided with the distribution. 166580fee3Smillert.\" 3. Neither the name of the University nor the names of its contributors 1709919f81Smillert.\" may be used to endorse or promote products derived from this software 1809919f81Smillert.\" without specific prior written permission. 1909919f81Smillert.\" 2009919f81Smillert.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2109919f81Smillert.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2209919f81Smillert.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2309919f81Smillert.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2409919f81Smillert.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2509919f81Smillert.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2609919f81Smillert.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2709919f81Smillert.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2809919f81Smillert.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2909919f81Smillert.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3009919f81Smillert.\" SUCH DAMAGE. 3109919f81Smillert.\" 32*64d4e987Stedu.\" $OpenBSD: atoll.3,v 1.6 2013/06/05 03:39:23 tedu Exp $ 3309919f81Smillert.\" 34*64d4e987Stedu.Dd $Mdocdate: June 5 2013 $ 3509919f81Smillert.Dt ATOLL 3 3609919f81Smillert.Os 3709919f81Smillert.Sh NAME 3809919f81Smillert.Nm atoll 3909919f81Smillert.Nd convert 4009919f81Smillert.Tn ASCII 4109919f81Smillertstring to long long integer 4209919f81Smillert.Sh SYNOPSIS 43*64d4e987Stedu.In stdlib.h 4409919f81Smillert.Ft long long 4509919f81Smillert.Fn atoll "const char *nptr" 4609919f81Smillert.Sh DESCRIPTION 4709919f81SmillertThe 4809919f81Smillert.Fn atoll 4909919f81Smillertfunction converts the initial portion of the string pointed to by 5009919f81Smillert.Fa nptr 5109919f81Smillertto 523f82fb3dSjaredy.Li long long integer 5309919f81Smillertrepresentation. 5409919f81Smillert.Pp 5509919f81SmillertIt is equivalent to: 5609919f81Smillert.Bd -literal -offset indent 5709919f81Smillertstrtoll(nptr, (char **)NULL, 10); 5809919f81Smillert.Ed 5909919f81Smillert.Sh SEE ALSO 6009919f81Smillert.Xr atof 3 , 6109919f81Smillert.Xr atoi 3 , 623389e0d9Smillert.Xr atol 3 , 6309919f81Smillert.Xr strtod 3 , 6409919f81Smillert.Xr strtol 3 , 6509919f81Smillert.Xr strtoul 3 6609919f81Smillert.Sh STANDARDS 6709919f81SmillertThe 6809919f81Smillert.Fn atoll 6909919f81Smillertfunction conforms to 7009919f81Smillert.St -ansiC-99 . 71