Thanks a lot for the tips! :-)

On Tue, Jan 31, 2017 at 3:13 PM, Christian Grothoff <[email protected]>
wrote:

> On 01/31/2017 05:59 PM, silvioprog wrote:
> > Complementing:
> >
> > $ cat /usr/local/include/microhttpd.h | grep 'MHD_VERSION'
> > #define MHD_VERSION 0x00095102
> >
> > How to convert 0x00095102 version in human readable returning something
> > like 0.9.52?
> >
>
> You should not. That's not what this is meant for, and it might not
> work.  The only strict assurance we give is that it will be
> monotonically increasing, so you can use it in your code to test whether
> a particular MHD header is in the right range.
>
> If you absolutely need to printf the result, I suggest you just use %8X.
>

-- 
Silvio Clécio

Reply via email to