Hi,
I'm using the follow code in a socket connection function:
How can I make "input" a dynamic length array? Can't get anything to work.Code:char input[100]; ssize_t n; while((n = read(sockfd, input, sizeof input)) > 0) { input[n] = '\0'; }
Thanks for the help.