Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / system / libroot / posix / stdlib / atoi.c
bloba97a68fe64ee25be042d5990cf714ca45b36616b
1 /*
2 * Copyright 2002-2007, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Author:
6 * Daniel Reinhold, danielre@users.sf.net
7 */
10 #include <stdlib.h>
13 int
14 atoi(const char* num)
16 return (int) strtol(num, NULL, 10);
20 unsigned int
21 atoui(const char* num)
23 return (unsigned int) strtoul(num, NULL, 10);
27 long
28 atol(const char* num)
30 return strtol(num, NULL, 10);
34 unsigned long
35 atoul(const char* num)
37 return strtoul(num, NULL, 10);
41 long long int
42 atoll(const char* num)
44 return strtoll(num, NULL, 10);