From: cuz Date: Sat, 18 May 2002 21:13:40 +0000 (+0000) Subject: Added bzero, _bzero X-Git-Tag: V2.12.0~2347 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b44f593ac3cbcf98768986a236ce3bd65d608202;p=cc65 Added bzero, _bzero git-svn-id: svn://svn.cc65.org/cc65/trunk@1275 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/string.h b/include/string.h index 98a006dc1..e85f3eace 100644 --- a/include/string.h +++ b/include/string.h @@ -64,8 +64,14 @@ void* __fastcall__ memcpy (void* dest, const void* src, size_t count); void* __fastcall__ memmove (void* dest, const void* src, size_t count); void* __fastcall__ memset (void* s, int c, size_t count); +/* The following is an internal function, the compiler will replace memset + * with it if the fill value is zero. Never use this one directly! + */ +void* __fastcall__ _bzero (void* ptr, size_t n); + /* Non standard: */ #ifndef __STRICT_ANSI__ +void __fastcall__ bzero (void* ptr, size_t n); /* BSD */ char* __fastcall__ strdup (const char* s); /* SYSV/BSD */ int __fastcall__ stricmp (const char* s1, const char* s2); /* DOS/Windows */ int __fastcall__ strcasecmp (const char* s1, const char* s2); /* Same for Unix */