Using "strcpy" to assign value to dynamic char array
pascal111
judas.the.messiah.111 at gmail.com
Fri Nov 5 00:29:35 UTC 2021
On Thursday, 4 November 2021 at 01:29:57 UTC, jfondren wrote:
> On Monday, 1 November 2021 at 19:56:13 UTC, pascal111 wrote:
>> But what if I want to use "strcpy" function to assign that new
>> value to the array that the problem is that the array won't
>> take more than its first initializing value length:
>>
>> {
>>
.
.
.
> assert(output == "ok\0Way t\0");
> assert(output[0 .. strlen(&output[0])] == "ok");
> }
> ```
I appreciate your vary explanation.
More information about the Digitalmars-d-learn
mailing list