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*42136Sbostic static char sccsid[] = "@(#)atol.c 5.5 (Berkeley) 05/16/90"; 2035103Sbostic #endif /* LIBC_SCCS and not lint */ 2122081Smckusick 22*42136Sbostic #include <stddef.h> 23*42136Sbostic #include <stdlib.h> 2435103Sbostic 251955Swnj long 2639475Sbostic atol(str) 2739475Sbostic char *str; 281955Swnj { 2939475Sbostic return(strtol(str, (char **)NULL, 10)); 301955Swnj } 31