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*e34c0550Sschwarze.\" $OpenBSD: atoll.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $ 3309919f81Smillert.\" 34*e34c0550Sschwarze.Dd $Mdocdate: September 10 2015 $ 3509919f81Smillert.Dt ATOLL 3 3609919f81Smillert.Os 3709919f81Smillert.Sh NAME 3809919f81Smillert.Nm atoll 39*e34c0550Sschwarze.Nd convert ASCII string to long long integer 4009919f81Smillert.Sh SYNOPSIS 4164d4e987Stedu.In stdlib.h 4209919f81Smillert.Ft long long 4309919f81Smillert.Fn atoll "const char *nptr" 4409919f81Smillert.Sh DESCRIPTION 4509919f81SmillertThe 4609919f81Smillert.Fn atoll 4709919f81Smillertfunction converts the initial portion of the string pointed to by 4809919f81Smillert.Fa nptr 4909919f81Smillertto 503f82fb3dSjaredy.Li long long integer 5109919f81Smillertrepresentation. 5209919f81Smillert.Pp 5309919f81SmillertIt is equivalent to: 5409919f81Smillert.Bd -literal -offset indent 5509919f81Smillertstrtoll(nptr, (char **)NULL, 10); 5609919f81Smillert.Ed 5709919f81Smillert.Sh SEE ALSO 5809919f81Smillert.Xr atof 3 , 5909919f81Smillert.Xr atoi 3 , 603389e0d9Smillert.Xr atol 3 , 6109919f81Smillert.Xr strtod 3 , 6209919f81Smillert.Xr strtol 3 , 6309919f81Smillert.Xr strtoul 3 6409919f81Smillert.Sh STANDARDS 6509919f81SmillertThe 6609919f81Smillert.Fn atoll 6709919f81Smillertfunction conforms to 681b0e3e11Sschwarze.St -isoC-99 . 69