File size: 633 Bytes
f80131c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>

struct CheckResult {
    const char *name;
    const char *status;
    const char *note;
};

static void print_result(struct CheckResult result) {
    printf("%s [%s]: %s\n", result.name, result.status, result.note);
}

int main(void) {
    struct CheckResult results[] = {
        {"schema", "pass", "required columns present"},
        {"content", "warn", "extraction fixture marker: shared code sample"},
        {"export", "pass", "archive file written"},
    };

    for (size_t index = 0; index < sizeof(results) / sizeof(results[0]); index++) {
        print_result(results[index]);
    }

    return 0;
}