Commit | Line | Data |
---|---|---|
6c09e8c3 KB |
1 | /* |
2 | * Copyright (c) 1988 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
019bea33 | 5 | * %sccs.include.redist.c% |
6c09e8c3 KB |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
f0a345ab | 9 | static char sccsid[] = "@(#)atol.c 5.7 (Berkeley) %G%"; |
6c09e8c3 KB |
10 | #endif /* LIBC_SCCS and not lint */ |
11 | ||
a414eecb KB |
12 | #include <stddef.h> |
13 | #include <stdlib.h> | |
b8f253e8 | 14 | |
c009c478 | 15 | long |
c7363d0b | 16 | atol(str) |
f0a345ab | 17 | const char *str; |
c009c478 | 18 | { |
c7363d0b | 19 | return(strtol(str, (char **)NULL, 10)); |
c009c478 | 20 | } |