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