Accessing char* after assigning its value C
Posted
by iSight
on Stack Overflow
See other posts from Stack Overflow
or by iSight
Published on 2010-05-31T13:24:06Z
Indexed on
2010/05/31
13:33 UTC
Read the original article
Hit count: 143
Filed under:
c
Hi,
I have assign the value of a member variable as under:
myValue = (char*)malloc(strlen(inValue) * sizeof(char));
strcpy(mValue, inValue);
while assigning it the value was proper as(taking printf output):
http://www.w3.org/2001/XMLSchema
But, when i get its value after wards i get it as:
http://www.w3.org/2001/XMLSchema(!
What could be the problem for this issue
© Stack Overflow or respective owner