comp.lang.c
[Top] [All Lists]

Reentrant functions and memory allocation

Subject: Reentrant functions and memory allocation
From:
Date: Sun, 30 Mar 2008 05:45:37 -0700 PDT
Newsgroups: comp.lang.c

Dear all,
I'm trying to put some old code in a portable, cross-platform library
and I'm facing a big problem: is there a standard, platform-
independent way to write a reentrant function that allocate dynamic
memory? In other words: is it safe to use malloc() or free() in a
thread-safe function?
Thank you,
Francesco

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy