1*dca9ccd3Swiz.\" $NetBSD: atoll.3,v 1.6 2003/09/08 17:54:33 wiz Exp $ 2e4d7c2e3Skleink.\" 3e4d7c2e3Skleink.\" Copyright (c) 1990, 1991, 1993 4e4d7c2e3Skleink.\" The Regents of the University of California. All rights reserved. 5e4d7c2e3Skleink.\" 6e4d7c2e3Skleink.\" This code is derived from software contributed to Berkeley by 7e4d7c2e3Skleink.\" the American National Standards Committee X3, on Information 8e4d7c2e3Skleink.\" Processing Systems. 9e4d7c2e3Skleink.\" 10e4d7c2e3Skleink.\" Redistribution and use in source and binary forms, with or without 11e4d7c2e3Skleink.\" modification, are permitted provided that the following conditions 12e4d7c2e3Skleink.\" are met: 13e4d7c2e3Skleink.\" 1. Redistributions of source code must retain the above copyright 14e4d7c2e3Skleink.\" notice, this list of conditions and the following disclaimer. 15e4d7c2e3Skleink.\" 2. Redistributions in binary form must reproduce the above copyright 16e4d7c2e3Skleink.\" notice, this list of conditions and the following disclaimer in the 17e4d7c2e3Skleink.\" documentation and/or other materials provided with the distribution. 18eb7c1594Sagc.\" 3. Neither the name of the University nor the names of its contributors 19e4d7c2e3Skleink.\" may be used to endorse or promote products derived from this software 20e4d7c2e3Skleink.\" without specific prior written permission. 21e4d7c2e3Skleink.\" 22e4d7c2e3Skleink.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23e4d7c2e3Skleink.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24e4d7c2e3Skleink.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25e4d7c2e3Skleink.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26e4d7c2e3Skleink.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27e4d7c2e3Skleink.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28e4d7c2e3Skleink.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29e4d7c2e3Skleink.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30e4d7c2e3Skleink.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31e4d7c2e3Skleink.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32e4d7c2e3Skleink.\" SUCH DAMAGE. 33e4d7c2e3Skleink.\" 34e4d7c2e3Skleink.\" from: @(#)atol.3 8.1 (Berkeley) 6/4/93 35e4d7c2e3Skleink.\" 36e4d7c2e3Skleink.Dd March 6, 2000 37e4d7c2e3Skleink.Dt ATOLL 3 38e4d7c2e3Skleink.Os 39e4d7c2e3Skleink.Sh NAME 40e4d7c2e3Skleink.Nm atoll 41e4d7c2e3Skleink.Nd convert 42e4d7c2e3Skleink.Tn ASCII 43e4d7c2e3Skleinkstring to long long integer 44e4d7c2e3Skleink.Sh LIBRARY 45e4d7c2e3Skleink.Lb libc 46e4d7c2e3Skleink.Sh SYNOPSIS 47472351e1Swiz.In stdlib.h 48e4d7c2e3Skleink.Ft long long int 49e4d7c2e3Skleink.Fn atoll "const char *nptr" 50e4d7c2e3Skleink.Sh DESCRIPTION 51e4d7c2e3SkleinkThe 52e4d7c2e3Skleink.Fn atoll 53e4d7c2e3Skleinkfunction converts the initial portion of the string pointed to by 54e4d7c2e3Skleink.Ar nptr 55e4d7c2e3Skleinkto 56e4d7c2e3Skleink.Em long long integer 57e4d7c2e3Skleinkrepresentation. 58e4d7c2e3Skleink.Pp 59e4d7c2e3SkleinkIt is equivalent to: 60e4d7c2e3Skleink.Bd -literal -offset indent 61e4d7c2e3Skleinkstrtoll(nptr, (char **)NULL, 10); 62e4d7c2e3Skleink.Ed 63e4d7c2e3Skleink.Sh SEE ALSO 64e4d7c2e3Skleink.Xr atof 3 , 65e4d7c2e3Skleink.Xr atoi 3 , 66e4d7c2e3Skleink.Xr atol 3 , 67e4d7c2e3Skleink.Xr strtod 3 , 68e4d7c2e3Skleink.Xr strtol 3 , 69e4d7c2e3Skleink.Xr strtoll 3 , 704e59d266Swiz.Xr strtoul 3 , 71e4d7c2e3Skleink.Xr strtoull 3 72e4d7c2e3Skleink.Sh STANDARDS 73e4d7c2e3SkleinkThe 74e4d7c2e3Skleink.Fn atoll 75e4d7c2e3Skleinkfunction 76e4d7c2e3Skleinkconforms to 77*dca9ccd3Swiz.St -isoC-99 . 78