mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
Implemented llabs() in stdlib.h/cpp.
This commit is contained in:
parent
4ce17721e3
commit
18a641f3f8
2 changed files with 6 additions and 0 deletions
|
@ -713,6 +713,11 @@ int abs(int i)
|
||||||
return i < 0 ? -i : i;
|
return i < 0 ? -i : i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long long int llabs(long long int i)
|
||||||
|
{
|
||||||
|
return i < 0 ? -i : i;
|
||||||
|
}
|
||||||
|
|
||||||
long int random()
|
long int random()
|
||||||
{
|
{
|
||||||
return rand();
|
return rand();
|
||||||
|
|
|
@ -49,6 +49,7 @@ char* ptsname(int fd);
|
||||||
int ptsname_r(int fd, char* buffer, size_t);
|
int ptsname_r(int fd, char* buffer, size_t);
|
||||||
int abs(int);
|
int abs(int);
|
||||||
long labs(long);
|
long labs(long);
|
||||||
|
long long int llabs(long long int);
|
||||||
double atof(const char*);
|
double atof(const char*);
|
||||||
int system(const char* command);
|
int system(const char* command);
|
||||||
char* mktemp(char*);
|
char* mktemp(char*);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue