This function does not modify the contents of the argument passed to it. Related
to #634.
CGRAPH_API Agraph_t *agmemread(const char *cp);
CGRAPH_API Agraph_t *agmemconcat(Agraph_t *g, const char *cp);
CGRAPH_API void agreadline(int);
-CGRAPH_API void agsetfile(char *);
+CGRAPH_API void agsetfile(const char *);
CGRAPH_API Agraph_t *agconcat(Agraph_t * g, void *chan, Agdisc_t * disc);
CGRAPH_API int agwrite(Agraph_t * g, void *chan);
CGRAPH_API int agisdirected(Agraph_t * g);
/* (Re)set file:
*/
-void agsetfile(char* f) { InputFile = f; line_num = 1; }
+void agsetfile(const char* f) { InputFile = f; line_num = 1; }
/* There is a hole here, because switching channels
* requires pushing back whatever was previously read.
char *dummy;
} Agraph_t;
-extern void agsetfile(char *);
+extern void agsetfile(const char *);
#include <ingraphs/ingraphs.h>