|
From: | Paul Eggert |
Subject: | Re: How to use a float value with either GLYPH_DEBUG or NSTRACE |
Date: | Tue, 22 Aug 2017 08:47:53 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/22/2017 04:32 AM, Noam Postavsky wrote:
dtoastr returns the length of the string like *printf, so you would have to use it like this: void example (CGFloat value) { char buf[DBL_BUFSIZE_BOUND]; dtoastr (buf, sizeof buf, 0, 0, value) NSTRACE ("float: %s", buf); }
Thanks for correcting the example. Sorry, but I can no longer easily test GNUstep code since Fedora stopped carrying GNUstep.
[Prev in Thread] | Current Thread | [Next in Thread] |