FreeCalypso > hg > freecalypso-reveng
view blobstat/output.c @ 362:b4fb0c7dfdf4
fluid-mnf: added -oC option to use cmd39.m0 for Calypso C05
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 14 Mar 2020 19:44:44 +0000 |
parents | 99f72069d867 |
children |
line wrap: on
line source
#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include "struct.h" extern struct category *category_list; print_output() { struct category *p; u_long total = 0; for (p = category_list; p; p = p->next) total += p->accum; printf("total: 0x%lX (%lu) bytes\n", total, total); for (p = category_list; p; p = p->next) printf("%s: 0x%lX (%lu) bytes, %lu%% of total\n", p->name, p->accum, p->accum, p->accum * 100 / total); return(0); }