> Can you tell me where I should have found this information in the manual? > Because I had been searching for something like this.
There is no explicit mention but <https://nim-lang.org/docs/manual.html#types-string-type> says > The terminating zero cannot be accessed unless the string is converted to the > cstring type first. The terminating zero assures that this conversion can be > done in O(1) and without any allocations. Which indirectly states "Hey you can use Nim strings as Cstrings anywhere you can do `char*` or `char*, SomeInt len` in C" > I think you misunderstood that I was asking about the last parameter > containing the lengths of the cstrings themselves, but passing nil is ok > there. CStringArrays are just pointers to some collection, they do not store their length anywhere. If you use Nim's `openArray[string]` proc they're nil terminated, but there is no certain way to retrieve length from a `cstringarray`. <https://nim-lang.org/docs/ctypes.html#cstringArray> for reference.