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