xref: /csrg-svn/lib/libc/stdlib/atoi.c (revision 46599)
135102Sbostic /*
235102Sbostic  * Copyright (c) 1988 Regents of the University of California.
335102Sbostic  * All rights reserved.
435102Sbostic  *
542633Sbostic  * %sccs.include.redist.c%
635102Sbostic  */
735102Sbostic 
826542Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*46599Sdonn static char sccsid[] = "@(#)atoi.c	5.7 (Berkeley) 02/23/91";
1035102Sbostic #endif /* LIBC_SCCS and not lint */
1122080Smckusick 
1242135Sbostic #include <stdlib.h>
1342135Sbostic #include <stddef.h>
1435102Sbostic 
1539476Sbostic atoi(str)
16*46599Sdonn 	const char *str;
171954Swnj {
1839476Sbostic 	return((int)strtol(str, (char **)NULL, 10));
191954Swnj }
20