|
Last change
on this file since 3896 was 3893, checked in by Bruno Cornec, 2 years ago |
|
Remove more warnings - switch and size_t/int comparisons
|
-
Property svn:eol-style
set to
native
|
|
File size:
793 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, size_t *lastpos);
|
|---|
| 18 | extern char *mr_stresc(char *instr, char *toesc, const char escchr, const char specialchr);
|
|---|
| 19 | extern char *mr_date(void);
|
|---|
| 20 | extern char *mr_strip_spaces(const char *instr);
|
|---|
| 21 | extern char *mr_str_substitute(const char *in, const char *token, const char *subst);
|
|---|
| 22 |
|
|---|
| 23 | // All safe strncpy calls are prefixed
|
|---|
| 24 | #define mr_strncpy strncpy
|
|---|
| 25 | /*
|
|---|
| 26 | extern void mr_strip_char(char *in_out, char *caracs);
|
|---|
| 27 | extern void mr_chomp(char *in_out);
|
|---|
| 28 | */
|
|---|
| 29 |
|
|---|
| 30 | #endif /* MR_STR_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.