/* REMEMBER -- YOU MUST COMPILE YOUR PROGRAM ON AN ALPHA COMPUTER */ #include #define NUMUSERS 1000 struct userinfo { char name[9]; int blocks_used ; int hard_limit ; int soft_limit ; } ; /* read_quotas(buff, numberusers) * buff -- a pointer to an array of struct userinfo that is to * contain information about all the users * bsize -- the number of elements in the array * This function returns -1 if it fails * otherwise it returns the number of users */ /* You don't need to read the text of this function. It works. */ int read_quotas(struct userinfo *buff, int bsize) { FILE *quota_file ; char throwaway[512] ; int i, c ; if ((quota_file=popen("/usr/local/bin/getquotas", "r")) == NULL) return -1 ; (void) fgets(throwaway, 512, quota_file) ; (void) fgets(throwaway, 512, quota_file) ; i = 0 ; while (i