Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/mn10200/crt1.c
2023-03-06 14:48:14 +01:00

16 lines
270 B
C

void __main ()
{
static int initialized;
if (! initialized)
{
typedef void (*pfunc) ();
extern pfunc __ctors[];
extern pfunc __ctors_end[];
pfunc *p;
initialized = 1;
for (p = __ctors_end; p > __ctors; )
(*--p) ();
}
}