From f239ac39ab80c2279d5b9ce42b58f8d6a1833780 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 21 Apr 2014 05:04:58 +0200 Subject: run mdsinitrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mds-server.h') diff --git a/src/mds-server.h b/src/mds-server.h index 4b558dd..c27498a 100644 --- a/src/mds-server.h +++ b/src/mds-server.h @@ -18,5 +18,15 @@ #ifndef MDS_MDS_SERVER_H #define MDS_MDS_SERVER_H + +/** + * Read an environment variable, but handle it as undefined if empty + * + * @param var The environment variable's name + * @return The environment variable's value, `NULL` if empty or not defined + */ +char* getenv_nonempty(const char* var); + + #endif -- cgit v1.2.3-70-g09d2