nyctergatis.com

Contact

Projects
Sysquake Remote Live
NME
PDF
Hike
Sudoku
GifBuilder
jpeglib for Palm OS
MySQL Client
Cross-GCC for Mac OS

NPWStdAlloc.c File Reference

NPW alloc callback function based on stdlib. More...

#include "NPWStdAlloc.h"
#include <stdlib.h>

Go to the source code of this file.


Functions

NPWErr NPWAllocStdlib (void **p, NPWInt size, void *userData)
 Callback to allocate, resize or free block of memory using stdlib; should be installed with NPWSetAllocCallback, with userData = NULL.

Detailed Description

NPW alloc callback function based on stdlib.

Author:
Yves Piguet. Copyright 2008-2010, Yves Piguet.

Definition in file NPWStdAlloc.c.


Function Documentation

NPWErr NPWAllocStdlib ( void **  p,
NPWInt  size,
void *  userData 
)

Callback to allocate, resize or free block of memory using stdlib; should be installed with NPWSetAllocCallback, with userData = NULL.

Parameters:
[in,out] p pointer to memory (NULL to allocate new block)
[in] size size of block (negative to free it)
[in,out] userData not used
Returns:
kNPWErrOk for success, else error code

Definition at line 12 of file NPWStdAlloc.c.

Generated by Doxygen.
Copyright 2007-2010, Yves Piguet.
All rights reserved.