hi Dev-C++,
[this is a followup thread to 'stdin reset..']
I want to programm a shell-like interface for my application, in which
I know some special commands with options and arguments.
the problem I have is, how do I create an input-buffer, that is able
to hold whatever is read from stdin, since i can not say what would be
the longest valid entry (say cat some large text...).
is there a way to dynamically read the length of the inputstring up to
the first '\n' and then malloc some string and THEN scanf() ???
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|