blob: a02b5358b37ce0cd3a1fe611d14cfcc5026595ed [file] [log] [blame]
extern int inside_main;
__attribute__ ((__noinline__))
void
bzero (void *s, __SIZE_TYPE__ n)
{
char *p;
for (p = s; n-- > 0; p++)
*p = 0;
#ifdef __OPTIMIZE__
if (inside_main)
abort ();
#endif
}