This is the mail archive of the cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: (fixed patch) "%E" formatting for the humans
- To: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Subject: Re: (fixed patch) "%E" formatting for the humans
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Mon, 03 May 1999 21:06:48 -0500
- cc: cygwin-developers@sourceware.cygnus.com
Corinna Vinschen <corinna.vinschen@cityweb.de> writes:
>
> FormatMessage has an option, to allocate the needed buffer itself
> (FORMAT_MESSAGE_ALLOCATE_BUFFER or similar). This buffer should
> then be freed with LocalFree() after usage.
> Would this be an alternative?
>
That was what I had done at first, only to discover that it doesn't fit
into the model used by small_vsprintf etc al very well (passed in pre
allocated buffer, arbitrary number of formatting directives, etc make
it impossible to inject a newly allocated buffer within). I'd welcome
any suggestions of course.
Regards,
Mumit