#include #include /*! * \brief copy string to allocated memory * * This routine allocates enough memory to hold the string s, * copies s to the allocated memory, and returns a pointer * to the allocated memory. * * \param s * \return char * */ char *G_store (const char *s) { char *buf; buf = G_malloc (strlen(s) + 1); strcpy (buf, s); return buf; }