Obtaining an address given a (run time) variable name
evilrat
evilrat666 at gmail.com
Tue Jan 21 05:54:48 UTC 2025
On Monday, 20 January 2025 at 22:32:02 UTC, DLearner wrote:
> It was because my understanding was that in certain situations
> the string construct did not just produce a character array -
> it also produced the (to me horrible) concept of adding a x'00'
> immediately after the last character of the array.
This is only for compile-time known strings (aka literals) for
easy C interop, if you make strings at runtime they won't have
null terminator as a granted.
More information about the Digitalmars-d-learn
mailing list