Edit this code to read from the client's standard input. check if the client's input is in a linked list called user. If it is, return "already in list", if not, create a node that is the name.
char buf[INPUT_BUFFER_SIZE] = {'\0'};
    int inbuf = 0;           // How many bytes currently in buffer?  
    int room = sizeof(buf);  // How many bytes remaining in buffer?  
    char *after = buf;       // Pointer to position after the data in buf  

    int nbytes;
        while ((nbytes = read(fd, after, room)) > 0) {
            inbuf += nbytes;
            int where;
            while ((where = find_network_newline(buf, inbuf)) > 0){
                buf[where-2] = '\0';
                curr->name = calloc(sizeof(char) * (MAXNAME + 2), 1);
                strcpy(curr->name, buf);
                strcat(curr->name, '\r\n');
                inbuf = inbuf-where;
                for (int i = 0; i < where; i++){
                    buf[i] = '\0';
                }
                memmove(buf, buf+where, inbuf);
                for (int i = where; i < INPUT_BUFFER_SIZE; i++){
                    buf[i] = '\0';
                }
            }
            after = buf+inbuf;
            room = BUFSIZE - inbuf;
        }
        close(fd);
        printf("The connection is now closed ...\n");