char* pointers between C and D

Kagamin spam at here.lot
Mon Jul 25 18:19:36 UTC 2022


This is how to do it the D way:
```
int main(string[] args)
{
	string ch1 = "Hello World!";
	char[] ch2="Hello World!".dup;

	string s1=ch1[1..$];
	char[] s2=ch2[1..$];

	writeln(s1);
	writeln(s2);

	return 0;
}
```


More information about the Digitalmars-d-learn mailing list