Align a buffer
void * | fwAlignPtr | ( | void * ptr, int alignBytes ); |
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. |
This function aligns the buffer pointed to by ptr to a specified alignment boundary.