int foo(void) __attribute__((weak));

int foo(void) {
    return 0;
}


syntax highlighted by Code2HTML, v. 0.9.1