Re: question about malloc attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2017-05-08 20:48 +0530, Prathamesh Kulkarni wrote:
> The patch marks functions like lrealpath() and rtx_reader::read_until
> as malloc, which
> I am not sure is correct ?

They are correct.  They both put something in an allocated buffer and
return the pointer to the buffer.
-- 
Xi Ruoyao <ryxi@xxxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux