Can sbrk and malloc be used in the same program?

孙世龙 sunshilong sunshilong369@gmail.com
Wed Aug 12 12:35:43 GMT 2020


Hi, list

As per the representation(https://my.eng.utah.edu/~cs4400/malloc.pdf,
page 3),  which says:
Do not use sbrk in a program that also uses malloc or anything that
calls malloc (such as print).

Is it right?
If it's right, why?


More information about the Libc-help mailing list