Comment on Pray for him in these trying times
SubArcticTundra@lemmy.ml 2 weeks ago
malloc(999999999999999999999999999999999)
Comment on Pray for him in these trying times
SubArcticTundra@lemmy.ml 2 weeks ago
malloc(999999999999999999999999999999999)
VigorouSchematic@fedinsfw.app 2 weeks ago
malloc(18,446,744,073,709,551,615)
ULLONG_MAXfromlimits.h- so on a 64bit machinesize_t = unsigned long long = uint640x0@lemmy.dbzer0.com 2 weeks ago
How about the equivalent
malloc(-1)?Also, it’s cheap to allocate memory if you never write to it. You should follow it up with memset() if you really wanna max out your Resident Set Size 🐏