C
CBFalconer
Walter said:Do you mean input from a terminal? That may be limited by your
operating system.
However,
C89 4.9.2 Streams
[...]
Environmental Limits
An implementation shall support text files with lines
containing at least 254 characters, including the terminating
new-line character. The value of the macro BUFSIZ shall be
at least 256.
As stdin is a stream and there is no exemption for stdin in the
above, an implementation that does not support lines of at least
254 characters on stdin is non-conformant.
But:
Nothing says how the backspace (or esc, or DEL etc.) keys are to be
handled. This means that there need not be any input line editing
ability. getc() simply returns the next character from that
stream. No buffer is needed. If the user wants a buffer, just
provide it. And ask your system documentation about how to get raw
input.
The fact that users normally want line editing is of no interest.