Bogdan Taru wrote:
> 
> Hi everyone,
> 
>  I wanna make a shell (very simple - 4 commands only) and I want to
> avoid the old programming problem of reading a string instead of a
> character at a time (used for buffering overflow attacks). Could
> somebody point to me such a C function which reads only one character at
> a time, without buffering the whole line before? I tried using getch()
> from ncurses library, but realized it's not very useful in my program...
> 
> Thanks & Have fun,
> bogdan

You might want to try getc().

        --Shawn Craver

Reply via email to