print ubyte[] as (ascii) string

eugene dee0xeed at gmail.com
Thu Dec 30 16:26:54 UTC 2021


On Thursday, 30 December 2021 at 16:00:59 UTC, Era Scarecrow 
wrote:
>  The answer i ended up with was a quick conversion to a UTF in 
> order to print it. Seems you might have to convert to Latin-1.

For a moment I only have symbols from the lower half of ASCII 
table.
I meant - can that be done as simple as in C, i.e:

```c
u8 *buf;
...
printf("%s", (char*)buf);
```
without any twists and turns.




More information about the Digitalmars-d-learn mailing list