GC seems to crash my C-code function

frame frame86 at live.com
Sat Sep 18 21:20:24 UTC 2021


On Saturday, 18 September 2021 at 21:16:13 UTC, frame wrote:
> On Saturday, 18 September 2021 at 18:48:07 UTC, Steven 
> Schveighoffer wrote:
>> Are you defining the prototype for strchr yourself instead of 
>> importing it from core.stdc.string?
>
> Not really :D but without cast it complains:
> ```
> Error: cannot implicitly convert expression strchr(e, 
> cast(int)c) of type const(char)* to char*
> ```

But I guess it's because it tries to assign to a `char*` 
therefore inout() doesn't work.




More information about the Digitalmars-d-learn mailing list