xref: /csrg-svn/lib/libc/stdlib/atol.c (revision 39475)
135103Sbostic /*
235103Sbostic  * Copyright (c) 1988 Regents of the University of California.
335103Sbostic  * All rights reserved.
435103Sbostic  *
535103Sbostic  * Redistribution and use in source and binary forms are permitted
635103Sbostic  * provided that the above copyright notice and this paragraph are
735103Sbostic  * duplicated in all such forms and that any documentation,
835103Sbostic  * advertising materials, and other materials related to such
935103Sbostic  * distribution and use acknowledge that the software was developed
1035103Sbostic  * by the University of California, Berkeley.  The name of the
1135103Sbostic  * University may not be used to endorse or promote products derived
1235103Sbostic  * from this software without specific prior written permission.
1335103Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1435103Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1535103Sbostic  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1635103Sbostic  */
1735103Sbostic 
1826543Sdonn #if defined(LIBC_SCCS) && !defined(lint)
19*39475Sbostic static char sccsid[] = "@(#)atol.c	5.4 (Berkeley) 11/01/89";
2035103Sbostic #endif /* LIBC_SCCS and not lint */
2122081Smckusick 
22*39475Sbostic #include <stdio.h>
2335103Sbostic 
241955Swnj long
25*39475Sbostic atol(str)
26*39475Sbostic 	char *str;
271955Swnj {
28*39475Sbostic 	long strtol();
291955Swnj 
30*39475Sbostic 	return(strtol(str, (char **)NULL, 10));
311955Swnj }
32