mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-18 05:34:34 +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:
@@ -252,4 +252,14 @@ int abs(int i)
|
||||
return i < 0 ? -i : i;
|
||||
}
|
||||
|
||||
long int random()
|
||||
{
|
||||
return rand();
|
||||
}
|
||||
|
||||
void srandom(unsigned seed)
|
||||
{
|
||||
srand(seed);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user