@slangmgh Did I understand? Are you setting a `char *` in a struct? FYI, this is very memory unsafe. I'm not sure how long your struct will live, but if the C implementation expects a heap allocated string or static char array then you can have problems.
The Nim GC can't automatically track references in the C code, so your string could be deleted while still in use! To fix this, you can manually control the string's reference count. Have a look [here](https://nim-lang.org/docs/backends.html#memory-management-strings-and-c-strings). Hope that helps!