135103Sbostic /* 235103Sbostic * Copyright (c) 1988 Regents of the University of California. 335103Sbostic * All rights reserved. 435103Sbostic * 542633Sbostic * %sccs.include.redist.c% 635103Sbostic */ 735103Sbostic 826543Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*46599Sdonn static char sccsid[] = "@(#)atol.c 5.7 (Berkeley) 02/23/91"; 1035103Sbostic #endif /* LIBC_SCCS and not lint */ 1122081Smckusick 1242136Sbostic #include <stddef.h> 1342136Sbostic #include <stdlib.h> 1435103Sbostic 151955Swnj long 1639475Sbostic atol(str) 17*46599Sdonn const char *str; 181955Swnj { 1939475Sbostic return(strtol(str, (char **)NULL, 10)); 201955Swnj } 21