3 ms·
A newline is missing in the example code. As given there's a segfault at line 5 not line 6. However, the code at https://github.com/lemire/Code-used-on-Daniel-
by eesmith 4y ago
A newline is missing in the example code. As given there's a segfault at line 5 not line 6.
However, the code at https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/master/2023/05/01/hello.c https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... shows it's indeed at line 6, because it has an extra newline after the '#include <stdlib.h>'.