This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: sprintf without realloc?


My original post wasn't clear; I'm prevented from using any kind of
*alloc based function that dynamically manages memory.

Thanks, though.

> -----Original Message-----
> From: Darin Johnson [mailto:chezdj@earthlink.net]
> Sent: Monday, September 25, 2006 3:20 PM
> To: Matt Gessner; newlib@sourceware.org
> Subject: Re: sprintf without realloc?
> 
> >I'm doing something using newlib, but I'm precluded from using any of
> >the *alloc functions, due to standards I must observe.
> 
> You can write your own *alloc functions that are just wrappers
> that call the actual allocation routines you need to use.   If you've
> got C++, you might want to create your own "new" allocator as well.
> I think it's somewhat common for people to do this.
> 
> --
> Darin Johnson


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]