This question already has an answer here:
Traditional programming with while-loop is done with a single parameter ex:
- while(1) (or) while(a==b) (or) while(a&&b) (or) while(!a) etc
-
The code below takes two parameters in the while loop
ssize_t r_read(int fd, void *buf, size_t size) { ssize_t retval; while (retval = read(fd, buf, size), retval == -1 && errno == EINTR); return retval; }
- Is there any limit to the parameters inside the while loop?
- Is there any possible explanation for this or does this methodology have a name?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire