test

Fork of mbed-libxively-6eca970 by Xively Official

Revision:
0:82702e998d3f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libxively/xi_allocator.c	Wed Jun 26 10:40:43 2013 +0000
@@ -0,0 +1,21 @@
+// Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
+// This is part of Xively C library, it is under the BSD 3-Clause license.
+
+/**
+ * \file    xi_allocator.c
+ * \author  Olgierd Humenczuk
+ * \brief   Our custom `alloc()` and `free()` [see xi_allocator.h]
+ */
+
+#include <stdlib.h>
+#include "xi_allocator.h"
+
+void* xi_alloc( size_t b )
+{
+    return ( void* ) malloc( b );
+}
+
+void xi_free( void* p )
+{
+    free( p );
+}