macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / stdlib / atol.c
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)atol.c 5.7 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stddef.h>
#include <stdlib.h>
long
atol(str)
const char *str;
{
return(strtol(str, (char **)NULL, 10));
}