grep -n send_to_char *.c | head -1 | awk -F: '{print "vim +"$2" "$1}'
grep -n send_to_char *.c | head -1 | awk -F: '{print "vim +"$2" "$1}'
if ( setsockopt( fd, SOL_SOCKET, SO_REUSEADDR,
(char *) &x, sizeof(x) ) < 0 )
{
perror( "Init_socket: SO_REUSEADDR" );
close(fd);
exit( 1 );
}
if ( setsockopt( fd, SOL_SOCKET, SO_REUSEADDR,
( char * ) &x, sizeof( x ) ) < 0 )
{
perror( "Init_socket: SO_REUSEADDR" );
close( fd );
exit( 1 );
}
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &x, sizeof(x)) < 0)
{
perror("Init_socket: SO_REUSEADDR");
close(fd);
exit(1);
}
As for the other stuff, well, I think we've wandered pretty far away from what we were talking about. We could all start adding extra requirements based on things we do every once in a while and pretty soon no solution at all would work for everything. :wink: