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 while(...) donīt
> specifies any function. Wich function expects while(...) to return <> 1 to
> exit loop?

The above loop will never terminate.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to