vector-of-bool / cmrc

A Resource Compiler in a Single CMake Script
MIT License
672 stars 74 forks source link

Added trailing zero to array. #12

Closed yuriisk closed 6 years ago

yuriisk commented 6 years ago

Without much overhead, this commit allows to embed files with textual data and then pass a pointer to this data to any function that expects null-terminated string. When reading file with text, previously it was mandatory to make a copy of a content and append a trailing null character.

vector-of-bool commented 6 years ago

The original version of CMakeRC had this. I don't know why I didn't think to bring it back... Thanks!