[xml] sprintf and xmlChar
- From: Christian Stocker <chregu bitflux ch>
- To: xml gnome org
- Subject: [xml] sprintf and xmlChar
- Date: Mon, 26 Aug 2002 22:31:48 +0200 (CEST)
Hi
Quick Question:
Can something go awry, if i do the following:
xmlChar *value, *string;
...
value = (xmlChar*) malloc (sizeof(xmlChar *) * (xmlStrlen(string) + 3));
sprintf(value, "\"%s\"", string);
...
or is there a better way of surrounding a xmlChar with " and " (or any
other character...). And can I use sprintf for xmlChar? Maybe I didn't see
something obvious, which would forbid that...
TIA
christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]