C23 - large binary blobs

0001-01-01

In C23, the #embed directive was introduced, which allows for the inclusion of binary blobs directly into C source files.

#include <stdio.h>

unsigned char data[] = #embed "binary_blob.bin";

int main() {
	for (size_t i = 0; i < sizeof(data); i++)
		printf("%02x ", data[i]);
	return 0;
}