News for hackers. Stuff that matters.
Re:An intro to Zig's integer casting for C programmers by dnautics on Tuesday May 11, 2021 @12:02PM (#27119774)
remove "pub" from your godbolt. Zig/godbolt is identifying that you're trying to build a full program and so it brings in a lot of the boilerplate necessary to launch a program (for example, the panic handler, stdlib stuff to format strings for the panic handler, etc).
Re:An intro to Zig's integer casting for C programmers by lerno on Tuesday May 11, 2021 @07:09PM (#27124766)
On the other hand, leave out “pub” and Zig won’t compile it…