Xively C library
Dependents: xively-jumpstart-demo
This is Xively C library, the code lives on GitHub.
See our example program and the tutorial, documentation can bee found here.
Diff: src/libxively/xi_allocator.c
- Revision:
- 0:53753690a8bf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libxively/xi_allocator.c Mon May 13 19:28:22 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 ); +}