delorie.com/archives/browse.cgi | search |
Date: | Tue, 27 Jun 1995 15:03:44 +0300 |
From: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
To: | kenny AT Freak DOT ORG |
Subject: | Re: read()? |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
> while ((count = read(0, buffer, sizeof(buffer))) > 0) { You are reading from handle 0, which is standard input, probably the keyboard. If you don't type anything, this indeed *should* hang until such time as you type sizeof(buffer) characters. Could this be the problem?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |