theteaman
Joined: 04 Aug 2006 Posts: 98
|
how is malloc defined for you? |
Posted: Wed Aug 30, 2006 8:23 am |
|
|
In stdlibm.h, how is malloc defined for you? IE. what parameter? For me, it is
Code: | char *malloc(size_t size) |
Since size_t is 8bits, wont a call like:
result in 0 bytes being allocated? If I change the parameter to be an int16, I think this will cause problems, any other ideas? Basically, I'm talking to flash memory which has a page size of 256 bytes.
thanks |
|