CS2263/Assigments/4/Compress/printStats.h
2023-05-22 23:28:51 -03:00

20 lines
435 B
C

#include <stdio.h>
#include <ctype.h>
void printStats(char **list, const int *count, int size) {
int i;
for (i = 0; i < size; i++) {
while (**list != EOF) {
if (isalnum(**list) == 0) {
break;
}
else {
putchar(**list);
(*list)++;
}
}
printf("\t%d\n", *(count+i));
list++;
}
}