summaryrefslogtreecommitdiff
path: root/common/stringx.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-07-08 18:27:54 +0000
committerStef Walter <stef@memberwebs.com>2004-07-08 18:27:54 +0000
commitc912dc0c7a6ab39c90200ed5614b181cd1397d5c (patch)
treea3b2df0f9a3a62ea9de95395d8e313bffddce203 /common/stringx.h
parent0561cfd0ce346fce733dd1b25e5b2650e50bf7bf (diff)
Initial import
Diffstat (limited to 'common/stringx.h')
-rw-r--r--common/stringx.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/stringx.h b/common/stringx.h
new file mode 100644
index 0000000..54b8ea6
--- /dev/null
+++ b/common/stringx.h
@@ -0,0 +1,19 @@
+
+#ifndef __UTIL_H__
+#define __UTIL_H__
+
+void messagex(clamsmtp_context_t* ctx, int level, const char* msg, ...);
+void message(clamsmtp_context_t* ctx, int level, const char* msg, ...);
+
+void log_fd_data(clamsmtp_context_t* ctx, const char* data, int* fd, int read);
+void log_data(clamsmtp_context_t* ctx, const char* data, const char* prefix);
+
+int check_first_word(const char* line, const char* word, int len, char* delims);
+int is_first_word(const char* line, const char* word, int len);
+int is_last_word(const char* line, const char* word, int len);
+int is_blank_line(const char* line);
+
+void plock();
+void punlock();
+
+#endif /* __UTIL_H__ */