GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
V_clear.c
Go to the documentation of this file.
1 
28 #include <stdio.h>
29 #include <grass/vask.h>
30 
31 
32 #define DECIMAL_PLACES -1
33 
34 
44 void V_clear(void)
45 {
46  static const char text[] = "";
47  int at_answer;
48 
49  for (at_answer = 0; at_answer < MAX_ANSW; at_answer++)
50  V__.usr_answ[at_answer].length = 0;
51 
52  for (at_answer = 0; at_answer < MAX_CONST; at_answer++)
53  V__.constant[at_answer].length = 0;
54 
55  for (at_answer = 0; at_answer < MAX_LINE; at_answer++)
56  V__.page.line[at_answer] = text;
57 
58  V__.NUM_CONST = 0;
59  V__.NUM_ANSW = 0;
60  V__.NUM_LINE = 0;
62  sprintf(V__.interrupt_msg, "CANCEL");
63 }
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
struct V__ V__
Definition: V_call.c:90
void V_clear(void)
Zero out prompt and answer arrays.
Definition: V_clear.c:44
#define DECIMAL_PLACES
Definition: V_clear.c:32
for(cat=0;;cat++)
Definition: g3dcats.c:140
void V_float_accuracy(int n)
Set number of decimal places.
Definition: V_acc.c:49