Complexity of reallocating storage (was users command crap)

David Caswell dbc at cimage.com
Sat Feb 9 06:09:50 AEST 1991


.From pty/master.c:
.
.   (void) lseek(fdsess,(long) 0,0);
.   (void) read(fdsess,(char *) &newuid,sizeof(int));
.   (void) sprintf(newsuid,"%d",newuid);
.

should be
(void) lseek(fdsess,0L,0);
saves some keystokes, after all what else in the world is important?



More information about the Comp.lang.c mailing list