This function does not modify its string argument, so it is more accurate to
qualify it as const. Related to #634.
/* strings */
CGRAPH_API char *agstrdup(Agraph_t *, const char *);
-CGRAPH_API char *agstrdup_html(Agraph_t *, char *);
+CGRAPH_API char *agstrdup_html(Agraph_t *, const char *);
CGRAPH_API int aghtmlstr(char *);
CGRAPH_API char *agstrbind(Agraph_t * g, char *);
CGRAPH_API int agstrfree(Agraph_t *, char *);
return r->s;
}
-char *agstrdup_html(Agraph_t * g, char *s)
+char *agstrdup_html(Agraph_t * g, const char *s)
{
refstr_t *r;
Dict_t *strdict;