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
| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
June 23, 2022 Null terminated character | ||||
|---|---|---|---|---|
| ||||
June 23, 2022 Re: Null terminated character | ||||
|---|---|---|---|---|
| ||||
Posted in reply to vc | 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 One way:
| |||
June 23, 2022 Re: Null terminated character | ||||
|---|---|---|---|---|
| ||||
Posted in reply to frame | On Thursday, 23 June 2022 at 17:27:51 UTC, frame wrote: >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 One way:
If you just need an array:
| |||
July 02, 2022 Re: Null terminated character | ||||
|---|---|---|---|---|
| ||||
Posted in reply to vc | 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
— Bastiaan. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply