Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@nyclamp.(none)>2014-03-31 19:51:01 +0400
committerJohn Langford <jl@nyclamp.(none)>2014-03-31 19:51:01 +0400
commitce8ffc8ff5821cc45f28739bc0889dc697dc8f98 (patch)
treefb0ef43ec0e37097dd156ae9b24d5295bb97b438 /vowpalwabbit/memory.h
parent5023ab65297cc03427afc8ca3d2c7730383b633f (diff)
error check all calls to calloc
Diffstat (limited to 'vowpalwabbit/memory.h')
-rw-r--r--vowpalwabbit/memory.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vowpalwabbit/memory.h b/vowpalwabbit/memory.h
new file mode 100644
index 00000000..5cbfa2a5
--- /dev/null
+++ b/vowpalwabbit/memory.h
@@ -0,0 +1,8 @@
+#ifndef MEMORY_H
+#define MEMORY_H
+
+void* calloc_or_die(size_t nmemb, size_t size);
+
+void free_it(void* ptr);
+
+#endif