A
Allan Bruce
Hi there,
I have a program written in c++ and I wish to use a similar function to
strdup().
The reason I have problems is that the char array requires freeing to avoid
a memory leak, but I get problems using delete[];
e.g.
char *NewCharArray;
NewCharArray = strdup("Some text");
delete []NewCharArray;
Nybody have any ideas?
Thanks
Allan
I have a program written in c++ and I wish to use a similar function to
strdup().
The reason I have problems is that the char array requires freeing to avoid
a memory leak, but I get problems using delete[];
e.g.
char *NewCharArray;
NewCharArray = strdup("Some text");
delete []NewCharArray;
Nybody have any ideas?
Thanks
Allan