#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
    const char* hex_string = "8098021050908C0C0C0E0C50D10032018600A01881AE0601860C806140C801030800006100001881980600";
    FILE* file = fopen("test4.exi", "wb");
    
    if (!file) {
        printf("Error creating test4.exi\n");
        return -1;
    }
    
    size_t len = strlen(hex_string);
    for (size_t i = 0; i < len; i += 2) {
        unsigned int byte;
        sscanf(&hex_string[i], "%2x", &byte);
        fputc(byte, file);
    }
    
    fclose(file);
    printf("test4.exi created successfully (%zu bytes)\n", len/2);
    return 0;
}