Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting from char * to char[]

Status
Not open for further replies.

Nordyck

Programmer
Aug 16, 2001
57
US
Need some help converting this.

Thanks in advance,
Nordyck

gm.ipcp.name = strcpy(&(gm.ipcp.name),(char*)AttrValue);
//gm.ipcp.name = (char*)AttrValue;
//error message --> cannot convert from 'char *' to 'char [96]


nordycki@hotmail.com
 
All you need is
Code:
strcpy(gm.ipcp.name,(char*)AttrValue);

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top