over a pipe, right now I am doing write(fd[1], &i, sizeof(int)). Is replacing the third with sizeof(i) better? Asking because all online snippets use sizeof(i), and I wanted to be sure it wasn't a convention or something.
both has same result
Обсуждают сегодня