30 lines
575 B
C
30 lines
575 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
|
|
int main(char argc, char **argv)
|
|
{
|
|
char boxes[9][100]; // 100's probably safe
|
|
char (*colptr)[100] = &boxes; // pointer to an array of 100 chars, so pointer to each box
|
|
|
|
char *buf = NULL;
|
|
size_t blen = 0;
|
|
char c, i, j; // looping vars
|
|
// pass 1, for grabbing boxes array
|
|
while (getline(&buf, &blen, stdin)) {
|
|
if (*buf == '\n')
|
|
break;
|
|
printf(buf);
|
|
i = 1;
|
|
j = 0;
|
|
for (c = buf[i]; j < 9; i += 4, j++) {
|
|
if (c >= 'A' && c <= 'A') {
|
|
|
|
}
|
|
}
|
|
}
|
|
free(buffer);
|
|
return 0;
|
|
}
|