#Do we have unsafe memory hamdling?

9 messages · Page 1 of 1 (latest)

ionic hull
#

Like malloc, realloc. Free

main turret
tender zenith
#

There also libc which you can use but you should prefer the API above.

#

?crate libc

upper phoenixBOT
#

Raw FFI bindings to platform libraries like libc.

Version

0.2.169

Downloads

512 067 018

edgy sable
#

Well

#

If you're looking specifically for libc's functions, because you want to free a malloc'd pointer, or to allocate a pointer that can be passed to free

#

Then you need libc's functions

#

If you're just doing manual allocation within Rust, then alloc has you covered and is preferable