News for hackers. Stuff that matters.
Re:Zig's Incremental Compilation Internals by dlcarrier on Wednesday July 29, 2026 @08:00PM (#49104601)
It's really easy to make a C hello world program that forwards the success of printf:

    #include <stdio.h>
    int main(void)
    {
        return printf("hello, world\n");
    }
I just tested it in a Bash shell, and it works great, only adding a single word, with clear functionality, to the example.
Re:Zig's Incremental Compilation Internals by boomlinde on Friday July 31, 2026 @01:44PM (#49126347)
This program will always give a non-zero return code. This is unconventional if not straight up wrong, if the goal is for main to indicate whether it was successful in printing.