# NOBJECTS -- Show the number of objects of each type in a catalog. procedure t_nobjects () pointer catalog # Catalog int classes # Print number in each class pointer filter # Filter options pointer sp bool clgetb() int btoi(), stflt() begin call smark (sp) call salloc (catalog, SZ_FNAME, TY_CHAR) call salloc (filter, SZ_LINE, TY_CHAR) call clgstr ("catalog", Memc[catalog], SZ_LINE) classes = btoi (clgetb ("classes")) call clgstr ("filter", Memc[filter], SZ_LINE) call strpak (Memc[catalog], Memc[catalog], SZ_FNAME) call strpak (Memc[filter], Memc[filter], SZ_LINE) if (stflt (Memc[filter]) == 0) call nobjects (Memc[catalog], classes) call sfree (sp) end