hist.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <grass/Vect.h>

Include dependency graph for hist.c:

Go to the source code of this file.

Functions

int Vect_hist_command (struct Map_info *Map)
 write command info to history file
int Vect_hist_write (struct Map_info *Map, char *str)
 write string to history file
char * Vect_hist_read (char *s, int size, struct Map_info *Map)
 reads one line from history file without newline character
void Vect_hist_rewind (struct Map_info *Map)
 rewind history file
int Vect_hist_copy (struct Map_info *In, struct Map_info *Out)
 copy history from one map to another


Function Documentation

int Vect_hist_command ( struct Map_info *  Map  ) 

write command info to history file

Returns:
0 OK, -1 error
Parameters:
struct Map_info *Map

Definition at line 29 of file hist.c.

References Vect_hist_write().

int Vect_hist_copy ( struct Map_info *  In,
struct Map_info *  Out 
)

copy history from one map to another

Returns:
0 OK, -1 error
Parameters:
struct Map_info *In, struct Map_info *Out

Definition at line 114 of file hist.c.

References Vect_hist_write().

char Vect_hist_read ( char *  s,
int  size,
struct Map_info *  Map 
)

reads one line from history file without newline character

Returns:
return s on success, and NULL on error or EOF
Parameters:
s buffer, allocated space must be size+1
size maximum number of character
Map 

Definition at line 78 of file hist.c.

int Vect_hist_rewind ( struct Map_info *  Map  ) 

rewind history file

Returns:
the number of characters printed
Parameters:
struct Map_info *Map, char *str

Definition at line 99 of file hist.c.

int Vect_hist_write ( struct Map_info *  Map,
char *  str 
)

write string to history file

Returns:
the number of characters printed
Parameters:
struct Map_info *Map, char *str

Definition at line 58 of file hist.c.

Referenced by Vect__open_old(), Vect_hist_command(), and Vect_hist_copy().


Generated on Sun Apr 6 17:32:49 2008 for GRASS by  doxygen 1.5.5