GRASS Programmer's Manual  6.4.2(2012)
V_clear.c
Go to the documentation of this file.
00001 
00028 #include <stdio.h>
00029 #include <grass/vask.h>
00030 
00031 
00032 #define DECIMAL_PLACES -1
00033 
00034 
00044 void V_clear(void)
00045 {
00046     static const char text[] = "";
00047     int at_answer;
00048 
00049     for (at_answer = 0; at_answer < MAX_ANSW; at_answer++)
00050         V__.usr_answ[at_answer].length = 0;
00051 
00052     for (at_answer = 0; at_answer < MAX_CONST; at_answer++)
00053         V__.constant[at_answer].length = 0;
00054 
00055     for (at_answer = 0; at_answer < MAX_LINE; at_answer++)
00056         V__.page.line[at_answer] = text;
00057 
00058     V__.NUM_CONST = 0;
00059     V__.NUM_ANSW = 0;
00060     V__.NUM_LINE = 0;
00061     V_float_accuracy(DECIMAL_PLACES);
00062     sprintf(V__.interrupt_msg, "CANCEL");
00063 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines