Implemented llabs() in stdlib.h/cpp.
This commit is contained in:
parent
4ce17721e3
commit
18a641f3f8
Notes:
sideshowbarker
2024-07-18 18:56:51 +09:00
Author: https://github.com/holdengreen Commit: https://github.com/SerenityOS/serenity/commit/18a641f3f84 Pull-request: https://github.com/SerenityOS/serenity/pull/6717 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/linusg
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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*);
|
||||
|
|
Loading…
Add table
Reference in a new issue