blob: a02b5358b37ce0cd3a1fe611d14cfcc5026595ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
}
|