#include "stdio.h" char buf[80]; static tyo(s, c) char c; FILE * s; { fputc(c, s); } main() { printf("Enter a line:"); buf[0] = '\0'; __input_editor(stdin, &buf, 80, fgetc, tyo); printf("\n\nGot line '%s'\n", buf); }