If you got the idea of splitting lines by `'\0'` from this link, might as well keep the hat tip