|
|
|
|
|
by Someone
1292 days ago
|
|
> SIZE_MAX is at least as large as the largest string that you can put in your address space / memory anyway. Not necessarily. A 64-bit system could give processes an address space that’s significantly larger than half the full 64-bit address space and have an allocator that allows you to allocate a block of more than SIZE_MAX bytes (malloc takes a size_t, but you can use calloc) |
|