00001 #include "gis.h"
00002 #include "version.h"
00003 #include <stdlib.h>
00004 #include <string.h>
00005
00014 int
00015 G_version (char *major, char *minor, char *release)
00016 {
00017 int len;
00018
00019 len = strlen(GRASS_VERSION_MAJOR);
00020 major = G_malloc (len);
00021 sprintf(major, "%s", GRASS_VERSION_MAJOR);
00022
00023 len = strlen(GRASS_VERSION_MINOR);
00024 minor = G_malloc (len);
00025 sprintf(minor, "%s", GRASS_VERSION_MINOR);
00026
00027 len = strlen(GRASS_VERSION_RELEASE);
00028 release = G_malloc (len);
00029 sprintf(release, "%s", GRASS_VERSION_RELEASE);
00030
00031 return 0;
00032 }