diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibC/stdlib.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibC/stdlib.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/stdlib.cpp b/Userland/Libraries/LibC/stdlib.cpp index 477fe086c8..293e2ca77a 100644 --- a/Userland/Libraries/LibC/stdlib.cpp +++ b/Userland/Libraries/LibC/stdlib.cpp @@ -713,6 +713,11 @@ int abs(int i) return i < 0 ? -i : i; } +long long int llabs(long long int i) +{ + return i < 0 ? -i : i; +} + long int random() { return rand(); diff --git a/Userland/Libraries/LibC/stdlib.h b/Userland/Libraries/LibC/stdlib.h index 7732ba55ef..fc029d2ce3 100644 --- a/Userland/Libraries/LibC/stdlib.h +++ b/Userland/Libraries/LibC/stdlib.h @@ -49,6 +49,7 @@ char* ptsname(int fd); int ptsname_r(int fd, char* buffer, size_t); int abs(int); long labs(long); +long long int llabs(long long int); double atof(const char*); int system(const char* command); char* mktemp(char*); |