aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.h
diff options
context:
space:
mode:
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-01-17 14:40:03 +0000
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-01-17 14:40:03 +0000
commit378970ea01d09e8365a5e5adea4989143b3f6b58 (patch)
treeeec46331a57bfcf1fb3e7b82d136b2e1308d5343 /evaluator.h
parent473fd2d3eee3b9b675b709114858a01a01810930 (diff)
downloadlcd4linux-378970ea01d09e8365a5e5adea4989143b3f6b58.tar.gz
use own strndup() from evaluator if not available on system
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1082 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'evaluator.h')
-rw-r--r--evaluator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/evaluator.h b/evaluator.h
index d969afe..5de3ce1 100644
--- a/evaluator.h
+++ b/evaluator.h
@@ -40,6 +40,11 @@ typedef struct {
char *string;
} RESULT;
+/* strndup() may be not available on several platforms */
+#ifndef HAVE_STRNDUP
+char *strndup(const char *source, size_t len);
+#endif
+
int SetVariable(const char *name, RESULT * value);
int SetVariableNumeric(const char *name, const double value);
int SetVariableString(const char *name, const char *value);