135102Sbostic /* 2*61180Sbostic * Copyright (c) 1988, 1993 3*61180Sbostic * The Regents of the University of California. All rights reserved. 435102Sbostic * 542633Sbostic * %sccs.include.redist.c% 635102Sbostic */ 735102Sbostic 826542Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*61180Sbostic static char sccsid[] = "@(#)atoi.c 8.1 (Berkeley) 06/04/93"; 1035102Sbostic #endif /* LIBC_SCCS and not lint */ 1122080Smckusick 1242135Sbostic #include <stdlib.h> 1342135Sbostic #include <stddef.h> 1435102Sbostic atoi(str)1539476Sbosticatoi(str) 1646599Sdonn const char *str; 171954Swnj { 1839476Sbostic return((int)strtol(str, (char **)NULL, 10)); 191954Swnj } 20