Implemented llabs() in stdlib.h/cpp.

This commit is contained in:
Holden Green 2021-04-28 16:17:06 -07:00 committed by Andreas Kling
parent 4ce17721e3
commit 18a641f3f8
Notes: sideshowbarker 2024-07-18 18:56:51 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -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();

View file

@ -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*);