Code for TCP/IP program to handle an unsupported telnet "will/won't" option in Networking
#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"extern u_char option_cmd;
/*ARGSUSED*/int
do_notsup(FILE *sfp, FILE *tfp, int c)
{
(void) putc(TCIAC, sfp);
(void) putc(TCDONT, sfp);
(void) putc((char)c, sfp);
return 0;
}