I'm assuming `p` is null-terminated of course.