|
|
|
|
|
by dvh
2931 days ago
|
|
But what if "some" is not subject of my program and I want to offload it's complexity away so that I can concentrate on actual subject of my program? In that case wouldn't it be better to have some_alloc, some_foo, some_free rather than to need each user to make their own, probably buggy and slow allocator? If I'm making image editor, allocating bitmaps myself is fine, if I'm writing crud app, not so much. |
|
What's wrong with malloc?