示例#1
0
int telnet_puts(const char *s)
{
	while(*s) {
		telnet_putchar(*s);
		s++;
	}
	telnet_putchar('\n');
	return 1;
}
示例#2
0
void telnet_putsnonl(const char *s)
{
	while(*s) {
		telnet_putchar(*s);
		s++;
	}
}
示例#3
0
int fputc(int ch, FILE *f) {
    if(f == &__stdout){
        telnet_putchar_all(ch);
        return (console_putchar(ch));
    }else if( f == &__stderr){
        telnet_putchar_all(ch);
        return (console_puterr(ch));
    }else if( f == &__lcdout){
        return (lcd_terminal_char(ch));
    }else if( f == &__uartout){
        return (console_putchar(ch));
    }else
        return telnet_putchar(f,ch);
}