| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: parsing tree help, Bartc |
|---|---|
| Next by Date: | Re: Experiences using "register", Ioannis Vranos |
| Previous by Thread: | ?: as an lvalue, Rahul |
| Next by Thread: | Re: Reentrant functions and memory allocation, Flash Gordon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |