20 lines
435 B
C
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++;
|
|
}
|
|
} |