diff options
Diffstat (limited to 'content/notes/2024-06-19-embedding-resources-into-binary-with-c.md')
| -rw-r--r-- | content/notes/2024-06-19-embedding-resources-into-binary-with-c.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/content/notes/2024-06-19-embedding-resources-into-binary-with-c.md b/content/notes/2024-06-19-embedding-resources-into-binary-with-c.md index f552f01..badc9f2 100644 --- a/content/notes/2024-06-19-embedding-resources-into-binary-with-c.md +++ b/content/notes/2024-06-19-embedding-resources-into-binary-with-c.md | |||
| @@ -11,9 +11,8 @@ tags: [c] | |||
| 11 | preprocessor has been put into the C23 standard but has not yet been | 11 | preprocessor has been put into the C23 standard but has not yet been |
| 12 | implemented by the compilers. | 12 | implemented by the compilers. |
| 13 | 13 | ||
| 14 | Until then a workaround with | 14 | Until then a workaround with [`xxd`](https://linux.die.net/man/1/xxd) is |
| 15 | [`xxd`](https://en.cppreference.com/w/c/preprocessor/embed) is possible without | 15 | possible without spending time on rolling out your own. |
| 16 | spending time on rolling out your own. | ||
| 17 | 16 | ||
| 18 | `xxd` has an option to export to C header file which makes this much easier. | 17 | `xxd` has an option to export to C header file which makes this much easier. |
| 19 | This works for all files be that text files or binary ones such as images, etc. | 18 | This works for all files be that text files or binary ones such as images, etc. |
