I need to store something in source as a char array so I can read it later,
how to store it in source file as char pointer and how to convert a binary file to char pointer?
I remember I saw some demo before that use this way to publish small demo without carry some small files, such as 5k or even 100k size of file.
I usually use a simple Perl/Ruby/Python script to convert binary data to C source code:
You can then paste the output into a C file, like this: