g3dmapset.c 383 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <sys/types.h>
  4. #include <unistd.h>
  5. #include "G3d_intern.h"
  6. /*---------------------------------------------------------------------------*/
  7. void G3d_makeMapsetMapDirectory(const char *mapName)
  8. {
  9. char buf[GNAME_MAX + sizeof(G3D_DIRECTORY) + 2];
  10. sprintf(buf, "%s/%s", G3D_DIRECTORY, mapName);
  11. G__make_mapset_element(buf);
  12. }