diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-03-09 18:04:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-03-09 18:04:49 (GMT) |
commit | dc8a2b19dbb32bfe49b1ff6640cc609238b392ca (patch) | |
tree | 2103c99baeb3b792bc82fc3db28bd16ecf72b70e /src/common/extstr.h | |
parent | f8f804cf7ff9a62404b843cf303c762101572784 (diff) |
Stored and loaded panels attributes using the global configuration.
Diffstat (limited to 'src/common/extstr.h')
-rw-r--r-- | src/common/extstr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/extstr.h b/src/common/extstr.h index 6542d2f..e1d784d 100644 --- a/src/common/extstr.h +++ b/src/common/extstr.h @@ -25,6 +25,7 @@ #define _COMMON_EXTSTR_H +#include <ctype.h> #include <sys/types.h> @@ -44,6 +45,12 @@ int strrcmp(const char *, const char *); /* Remplace des éléments d'une chaîne par d'autres. */ char *strrpl(char *, const char *, const char *); +/* Bascule toute une chaîne de caractères en (min|maj)uscules. */ +char *_strxxx(char *, int (* fn) (int)); + +#define strlower(str) _strxxx(str, tolower) +#define strupper(str) _strxxx(str, toupper) + /* Extrait une liste de mots d'une chaîne. */ char **strtoka(const char *, const char *, size_t *); |