Comment

Comment by acqq

> the C example ... by definition strings cannot contain that character

They can, only some functions stop at the first zero:

    char s[] = "gogo\x00gogo";
    printf( "%d\n", (int)sizeof( s ) );
parent acqq 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton