hello,
> Oky, is it in order to allocate a new buffer before listening requests?
> (To avoid reading program's arguments?)
if i understand your question right, the answer is no.
the best way, when you starts the code, and initialize the
variables, after put that function.
for example:
int
main(...)
{
type var;
... ...
setbuf (stdout, NULL);
...
// main loop
while(fgets(input, MAX_STRLEN, stdin)) {
..
}
}
in my previous mail i wrote "stdin" - that isn't correct, you
need to set up the stdin, instead of stdout, sorry.
bye:
a.
> >hello,
> >
> >
> >
> >>An external helper return OK or ERR in the stdin. Possibly more, I don't
> >>know. Is someone can tell more about it?
> >>
> >>
> >
> >you have to set your stdin buffer to NULL, in C:
> >
> >#include <stdio.h>
> >
> >
> >...
> > setbuf (stdin, NULL);
> >...
> >
> >(i dunno', how can you set it in any shell)
> >
> >
> I didn't empty stdin buffer in shell and it was working.
>
> Ghislain
>
>
-- Minden baj forr�sa az 1/x f�ggv�ny.Received on Tue Nov 15 2005 - 13:01:37 MST
This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:09 MST