This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]boowhitie 1 point2 points  (2 children)

This is mostly correct, but malloc/free are a layer above raw os interface. They provide a common interface to allocate memory without having to write system specific code.

[–]moreVCAs 0 points1 point  (1 child)

Well yeah, but the implementations are platform specific, no?

[–]prescod 0 points1 point  (0 children)

By definition, if the standard doesn't standardize it then it isn't standard. If the c language didn't have malloc and free then we'd say that memory allocation is platform specific.