*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "config.h"
#include <ctype.h>
-#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <xlist.h>
}
}
- return;
+ return;
}
#endif
int len, to_copy, total = 0;
va_start (ap, n);
-
+
for (s = va_arg (ap, char *); s; s = va_arg (ap, char *)) {
len = strlen (s);
for (l = xtag->attributes; l; l = l->next) {
attr = (XAttribute *)l->data;
-
+
nn = xtag_snprints (buf, n, " ", attr->name, "=\"", attr->value, "\"",
NULL);
FORWARD(nn);
}
-
+
if (xtag->children == NULL) {
nn = xtag_snprints (buf, n, "/>", NULL);
FORWARD(nn);
return written;
}
-
+
nn = xtag_snprints (buf, n, ">", NULL);
FORWARD(nn);
}