Last change
on this file since 2877 was 2421, checked in by Bruno Cornec, 15 years ago |
- Remove some compiler warnings on main
- Adds function mr_chomp and mr_strip_char and use them in mr_date and call_program_and_get_last_line_of_output
- Fix call_program_and_get_last_line_of_output to return the right result using a temp file instead of popen
- Fix an issue in mr_getline_int in case of eof (returns now an empty string)
- Sequencing of Init of bkpinfo reviewed
|
-
Property svn:eol-style
set to
native
|
File size:
602 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * $Id$
|
---|
3 | *
|
---|
4 | * Header file of mr_str.c: a set of function manipulating strings
|
---|
5 | * Provided under the GPL v2
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef MR_STR_H
|
---|
9 | #define MR_STR_H
|
---|
10 |
|
---|
11 | /* Constants for mr_stresc */
|
---|
12 | #define WILDCHARS "[]*?"
|
---|
13 | #define BACKSLASH '\\'
|
---|
14 |
|
---|
15 | /* functions (public methods) */
|
---|
16 |
|
---|
17 | extern char *mr_strtok(char *instr, const char *delims, int *lastpos);
|
---|
18 | extern char *mr_stresc(char *instr, char *toesc, const char escchr);
|
---|
19 | extern char *mr_date(void);
|
---|
20 | extern void mr_strip_spaces(char *in_out);
|
---|
21 | extern void mr_strip_char(char *in_out, char *caracs);
|
---|
22 | extern void mr_chomp(char *in_out);
|
---|
23 |
|
---|
24 | #endif /* MR_STR_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.