Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers xi_allocator.c Source File

xi_allocator.c

Go to the documentation of this file.
00001 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
00002 // This is part of Xively C library, it is under the BSD 3-Clause license.
00003 
00004 /**
00005  * \file    xi_allocator.c
00006  * \author  Olgierd Humenczuk
00007  * \brief   Our custom `alloc()` and `free()` [see xi_allocator.h]
00008  */
00009 
00010 #include <stdlib.h>
00011 #include "xi_allocator.h"
00012 
00013 void* xi_alloc( size_t b )
00014 {
00015     return ( void* ) malloc( b );
00016 }
00017 
00018 void xi_free( void* p )
00019 {
00020     free( p );
00021 }