version.c

Go to the documentation of this file.
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 }

Generated on Wed Aug 23 17:49:23 2006 for GRASS by  doxygen 1.4.7