summaryrefslogtreecommitdiff
path: root/src/wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapper.h')
-rw-r--r--src/wrapper.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/wrapper.h b/src/wrapper.h
new file mode 100644
index 0000000..c02ea6c
--- /dev/null
+++ b/src/wrapper.h
@@ -0,0 +1,36 @@
+
+/**********************************************************************
+
+ Copyright 2019 Andrey V.Kosteltsev
+
+ Licensed under the Radix.pro License, Version 1.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://radix.pro/licenses/LICENSE-1.0-en_US.txt
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.
+
+ **********************************************************************/
+
+#ifndef _WRAPPER_H_
+#define _WRAPPER_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+extern char *xstrdup( const char *str );
+extern void *xmalloc( size_t size );
+extern void *xrealloc( void *ptr, size_t size );
+
+
+#ifdef __cplusplus
+} /* ... extern "C" */
+#endif
+
+#endif /* _WRAPPER_H_ */