mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibC: Add some things needed to build GNU bc.
This patch adds vprintf(), sig_atomic_t, random() and strdup(). bc doesn't build yet, but it will.
This commit is contained in:
parent
feed67ede2
commit
76f53b40f4
6 changed files with 30 additions and 1 deletions
|
@ -252,4 +252,14 @@ int abs(int i)
|
|||
return i < 0 ? -i : i;
|
||||
}
|
||||
|
||||
long int random()
|
||||
{
|
||||
return rand();
|
||||
}
|
||||
|
||||
void srandom(unsigned seed)
|
||||
{
|
||||
srand(seed);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue