libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG


From: silvioprog
Subject: Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG
Date: Fri, 3 Feb 2017 12:32:51 -0300

Thanks a lot for the tips! :-)

On Tue, Jan 31, 2017 at 3:13 PM, Christian Grothoff <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]