Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libxml2 xmlChar* cast to char*

How would you convert / cast an xmlChar* to char* from the libxml2 library? Thanks.

like image 428
mobilekid Avatar asked Feb 17 '10 16:02

mobilekid


1 Answers

If you take a look at the examples, for instance io2.c, you'll notice that they just blithely cast it to a char *:

printf("%s", (char *) xmlbuff);
like image 151
darelf Avatar answered Sep 17 '22 12:09

darelf