On Friday, 2 April 2021 at 04:49:22 UTC, mw wrote:
So you mean inside the writeln() call, the 0s are skipped?

Well, if I use `string t` as filename, it will try to looking for a file called:

"head-abc\0\0\0-tail" instead of just "head-abc-tail" ?

or it's platform dependent?

I would imagine that it's platform dependant, but given most platforms adhere to the C ABI, and C string are null terminated, you'd end up looking for a file called "head-abc".
    • Re: what exactly ... mw via Digitalmars-d-learn
      • Re: what exac... rikki cattermole via Digitalmars-d-learn
        • Re: what ... mw via Digitalmars-d-learn
          • Re: w... mw via Digitalmars-d-learn
            • ... rikki cattermole via Digitalmars-d-learn
              • ... mw via Digitalmars-d-learn
              • ... H. S. Teoh via Digitalmars-d-learn
              • ... H. S. Teoh via Digitalmars-d-learn
              • ... mw via Digitalmars-d-learn
              • ... Paul Backus via Digitalmars-d-learn
          • Re: w... Computermatronic via Digitalmars-d-learn
            • ... mw via Digitalmars-d-learn
              • ... Computermatronic via Digitalmars-d-learn
              • ... rikki cattermole via Digitalmars-d-learn
              • ... mw via Digitalmars-d-learn
              • ... Berni44 via Digitalmars-d-learn
      • Re: what exac... mw via Digitalmars-d-learn
  • Re: what exactly is st... H. S. Teoh via Digitalmars-d-learn
  • Re: what exactly is st... Виталий Фадеев via Digitalmars-d-learn

Reply via email to