AlignPtr

Align a buffer

Synopsis

void *   fwAlignPtr ( void * ptrint alignBytes );

Parameters

alignBytes   Specifies the number of bytes for alignment, must be a power of 2. NULL is returned if the value is less than 2.
ptr   Pointer to a memory buffer.

Description

This function aligns the buffer pointed to by ptr to a specified alignment boundary.