Hernan Berinsky wrote:
> while(1)
> {
...
> }
> Wich function expects while(...) to return <> 1 to exit loop?
It never does. This is a never ending loop.
while loops as long as the expression is <> 0. Only way to break such a
loop is to use break.
while(1) {
/* A normally never ending loop
Hernan Berinsky wrote:
> In this portion of code:
>
> while(1)
> {
> fp = fopen(FIFO_FILE, "r");
>fgets(readbuf, 80, fp);
>printf("Received string: %s\n", readbuf);
>fclose(fp);
> }
>
> while(1) I think that is *while true*,
Yep, i.e. loop forever.
> but.. in the