GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
store.c
Go to the documentation of this file.
1 
17 #include <grass/gis.h>
18 #include <string.h>
19 
20 
32 char *G_store(const char *s)
33 {
34  char *buf;
35 
36  buf = G_malloc(strlen(s) + 1);
37  strcpy(buf, s);
38 
39  return buf;
40 }
char * G_store(const char *s)
Copy string to allocated memory.
Definition: store.c:32
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
Definition: g3drange.c:62