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:
Andreas Kling 2019-02-01 16:03:21 +01:00
commit 76f53b40f4
Notes: sideshowbarker 2024-07-19 15:54:06 +09:00
6 changed files with 30 additions and 1 deletions

View file

@ -252,4 +252,14 @@ int abs(int i)
return i < 0 ? -i : i;
}
long int random()
{
return rand();
}
void srandom(unsigned seed)
{
srand(seed);
}
}