mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibC: Move bzero() and bcopy() per Dr. POSIX
This commit is contained in:
parent
9766f61f7b
commit
b4918bbe2f
6 changed files with 15 additions and 12 deletions
|
@ -26,10 +26,21 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
void bzero(void* dest, size_t n)
|
||||
{
|
||||
memset(dest, 0, n);
|
||||
}
|
||||
|
||||
void bcopy(const void* src, void* dest, size_t n)
|
||||
{
|
||||
memmove(dest, src, n);
|
||||
}
|
||||
|
||||
static char foldcase(char ch)
|
||||
{
|
||||
if (isalpha(ch))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue