xref: /csrg-svn/lib/libc/stdlib/atol.c (revision 61180)
135103Sbostic /*
2*61180Sbostic  * Copyright (c) 1988, 1993
3*61180Sbostic  *	The Regents of the University of California.  All rights reserved.
435103Sbostic  *
542633Sbostic  * %sccs.include.redist.c%
635103Sbostic  */
735103Sbostic 
826543Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*61180Sbostic static char sccsid[] = "@(#)atol.c	8.1 (Berkeley) 06/04/93";
1035103Sbostic #endif /* LIBC_SCCS and not lint */
1122081Smckusick 
1242136Sbostic #include <stddef.h>
1342136Sbostic #include <stdlib.h>
1435103Sbostic 
151955Swnj long
atol(str)1639475Sbostic atol(str)
1746599Sdonn 	const char *str;
181955Swnj {
1939475Sbostic 	return(strtol(str, (char **)NULL, 10));
201955Swnj }
21