37 #include <grass/gis.h> 
   38 #include <grass/vask.h> 
   39 #include <grass/edit.h> 
   49         sprintf(phist->title, 
"%s", 
"filename");
 
   55         sprintf(phist->maptype, 
"raster");
 
   58     V_line(0, 
"          ENTER/CORRECT FILE HISTORY INFORMATION");
 
   65     V_line(16, 
"Data Description");
 
   66     V_line(19, 
"For history comments see next page");
 
   71     phist->mapid[len] = 0;
 
   72     phist->title[len] = 0;
 
   73     phist->mapset[len] = 0;
 
   74     phist->creator[len] = 0;
 
   75     phist->maptype[len] = 0;
 
   78     V_const(phist->mapid, 
's', 2, 11, len);
 
   79     V_ques(phist->title, 
's', 4, 11, len);
 
   80     V_const(phist->mapset, 
's', 6, 11, len);
 
   81     V_const(phist->creator, 
's', 8, 11, len);
 
   82     V_ques(phist->maptype, 
's', 10, 11, len);
 
   84     phist->datsrc_1[len] = 0;
 
   85     phist->datsrc_2[len] = 0;
 
   86     phist->keywrd[len] = 0;
 
   89     V_ques(phist->datsrc_1, 
's', 13, 0, len);
 
   90     V_ques(phist->datsrc_2, 
's', 14, 0, len);
 
   91     V_ques(phist->keywrd, 
's', 17, 0, len);
 
  104     V_line(0, 
"          ENTER/CORRECT FILE HISTORY COMMENTS");
 
  105     V_ques(phist->edhist[0], 
's', 2, 0, len);
 
  106     V_ques(phist->edhist[1], 
's', 3, 0, len);
 
  107     V_ques(phist->edhist[2], 
's', 4, 0, len);
 
  108     V_ques(phist->edhist[3], 
's', 5, 0, len);
 
  109     V_ques(phist->edhist[4], 
's', 6, 0, len);
 
  110     V_ques(phist->edhist[5], 
's', 7, 0, len);
 
  111     V_ques(phist->edhist[6], 
's', 8, 0, len);
 
  112     V_ques(phist->edhist[7], 
's', 9, 0, len);
 
  113     V_ques(phist->edhist[8], 
's', 10, 0, len);
 
  114     V_ques(phist->edhist[9], 
's', 11, 0, len);
 
  115     V_ques(phist->edhist[10], 
's', 12, 0, len);
 
  116     V_ques(phist->edhist[11], 
's', 13, 0, len);
 
  117     V_ques(phist->edhist[12], 
's', 14, 0, len);
 
  118     V_ques(phist->edhist[13], 
's', 15, 0, len);
 
  119     V_ques(phist->edhist[14], 
's', 16, 0, len);
 
  120     V_ques(phist->edhist[15], 
's', 17, 0, len);
 
  121     V_ques(phist->edhist[16], 
's', 18, 0, len);
 
  122     V_ques(phist->edhist[17], 
's', 19, 0, len);
 
  123     V_ques(phist->edhist[18], 
's', 20, 0, len);
 
  124     V_ques(phist->edhist[19], 
's', 21, 0, 65);
 
  127     for (i = 0; i <= 19; i++)
 
  128         phist->edhist[i][len] = 0;
 
  134     for (i = 0; i <= 19; i++)
 
  137     for (phist->edlinecnt = 19; phist->edlinecnt > 0; phist->edlinecnt--) {
 
  138         if (*phist->edhist[phist->edlinecnt] != 0)
 
char * G_mapset(void)
current mapset name 
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
void V_clear(void)
Zero out prompt and answer arrays. 
int V_line(int linenumber, const char *text)
int V_call(void)
Interact with the user. 
int G_strip(char *buf)
Removes all leading and trailing white space from string. 
char * G_whoami(void)
Gets user's name. 
int V_const(void *src, int var_type, int row, int col, int length)
int E_edit_history(struct History *phist)
char * G_date(void)
Current date and time. 
int V_ques(void *src, int var_type, int row, int col, int length)
void V_intrpt_ok(void)
Allow CTRL-C.