Null terminated character

Bastiaan Veelo Bastiaan at Veelo.net
Sat Jul 2 22:57:58 UTC 2022


On Thursday, 23 June 2022 at 16:16:26 UTC, vc wrote:
> I've try this '\0'*10 and didn't work, i want the results be 
> \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00

```d
string nulls = '\0'.repeat(10).array;
```

— Bastiaan.


More information about the Digitalmars-d-learn mailing list