3 * Counts how many member of each class exist in the database.
5 * (c) Copyright 1988 by the Massachusetts Institute of Technology.
6 * For copying and distribution information, please see the file
10 #include <mit-copyright.h>
18 struct save_queue *sq, *sq_create();
24 ## range of u is users
25 ## retrieve unique (class = trim(u.mit_year)) {
26 sq_save_data(sq, strsave(class));
29 while (sq_get_data(sq, &c)) {
30 ## repeat retrieve (n = count(u.login where u.mit_year = @c))
31 printf("%8s: %4d\n", c, n);