I was studying a socket tutorial in C, and I came across this:
char buffer[256];
bzero(buffer, 256);
n = read(newsockfd, buffer, 255);
However, as far I know, shouldn't the buffer
variable be passed by reference (using &) to bzero
and read
functions? As well, the man pages for bzero and read specify that these arguments are pointers. Am I missing something?