print ubyte[] as (ascii) string

eugene dee0xeed at gmail.com
Fri Jan 7 22:04:28 UTC 2022


On Friday, 7 January 2022 at 21:17:33 UTC, Steven Schveighoffer 
wrote:
> In C you have one choice (printf), but that choice may not fit 
> your needs.

There are 2 buffers (RX one and TX one, both of 'reasonable' size)
(it's the effing echo-server, nothing more)

* print content of RX-buffer, ommiting terminating '\n' ('\n' is 
the 'end of request') to (log/journal file)/stdout/

* ouptut received 'message' back to client, _with_ terminating 
'\n'




More information about the Digitalmars-d-learn mailing list