GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tools.h
Go to the documentation of this file.
1 
2 /***************************************************************************
3  * tools.h
4  *
5  * Mon Apr 18 15:04:11 2005
6  * Copyright 2005 Benjamin Ducke
7  ****************************************************************************/
8 
9 /*
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  */
24 
25 #ifndef _TOOLS_H
26 #define _TOOLS_H
27 
28 char *basename(char *path);
29 
30 void mkdir_s(char *pathname, char *mode);
31 
32 int chop(char *string);
33 
34 int insert_str(char *str, int pos, char **strarr);
35 
36 int delete_str(int pos, char **strarr);
37 
38 int find_pos(char *str, char **strarr, int start);
39 
40 void dump_str(FILE * f, char **strarr);
41 
42 void get_package_name(char *path, char *name);
43 
44 char *nc_fgets(char *s, int size, FILE * stream);
45 
46 char *nc_fgets_nb(char *s, int size, FILE * stream);
47 
48 char *nc_fgets_html(char *s, int size, FILE * stream);
49 
50 void dump_ascii(char *file, char *heading);
51 
52 void dump_plain(char *file, char *tmpfile);
53 
54 void dump_html(char *file, char *tmpfile);
55 
56 void list_binaries(char *package);
57 
58 int binaries_exist(char *package, char *binaries);
59 
60 int check_filetype(char *file);
61 
62 void wget_extension(char *url);
63 
64 void su(char *gisbase, char *cmd);
65 
66 int vercmp(int major, int minor, int revision, int major2, int minor2,
67  int revision2);
68 
69 #endif /* _TOOLS_H */
char * basename(char *path)
Definition: tools.c:33
tuple cmd
Definition: forms.py:2020
void get_package_name(char *path, char *name)
Definition: tools.c:273
string name
Definition: render.py:1314
void dump_str(FILE *f, char **strarr)
Definition: tools.c:258
tuple pos
Definition: tools.py:1367
void dump_html(char *file, char *tmpfile)
Definition: tools.c:597
int delete_str(int pos, char **strarr)
Definition: tools.c:190
void mkdir_s(char *pathname, char *mode)
Definition: tools.c:73
tuple gisbase
Definition: forms.py:59
void wget_extension(char *url)
Definition: tools.c:766
int check_filetype(char *myfile)
Definition: tools.c:737
tuple size
value.Bind(wx.EVT_TEXT, self.OnVolumeIsosurfMap)
Definition: tools.py:2334
void list_binaries(char *package)
Definition: tools.c:642
int vercmp(int major, int minor, int revision, int major2, int minor2, int revision2)
Definition: tools.c:832
char * nc_fgets(char *s, int size, FILE *stream)
Definition: tools.c:307
char * nc_fgets_html(char *s, int size, FILE *stream)
Definition: tools.c:339
int binaries_exist(char *package, char *binaries)
Definition: tools.c:690
int find_pos(char *str, char **strarr, int start)
Definition: tools.c:230
int chop(char *string)
Definition: tools.c:86
int insert_str(char *str, int pos, char **strarr)
Definition: tools.c:125
void dump_ascii(char *file, char *heading)
Definition: tools.c:539
#define file
void su(char *gisbase, char *cmd)
Definition: tools.c:796
char * nc_fgets_nb(char *s, int size, FILE *stream)
Definition: tools.c:500
void dump_plain(char *file, char *tmpfile)
Definition: tools.c:563
tuple mode
Definition: tools.py:1481