Trouble understanding C memalign
Hi Guys,
I’m trying to port a file browser from one platform to another, and trying to avoid using any new C functions if possible.
I’m reading this link:
The GNU C Library: Aligned Memory Blocks
and still having trouble with what memlalign does.
I understand memset, and think that i can easily replace that with code of my own.
With memset, I don’t understand what’s called a boundary in that link,
and it would be appreciated if someone could explain what it does that I couldn’t do by declaring my own array.
What I suspect, but still don’t know is the block of memory can all be addressed from an offset by a small variable.
Cheers, Art.