GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
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 */
gem
tools.h
Generated on Sun Mar 16 2014 05:07:49 for GRASS Programmer's Manual by
1.8.1.2