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: Christian Grothoff
Subject: Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG
Date: Tue, 31 Jan 2017 19:13:42 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.6.0

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.

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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