Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Jan 2018 11:43:05 +1100
From: Peter Wang <novalazy@...il.com>
To: musl@...ts.openwall.com
Subject: alternative form flag with zero octal value

Hi,

I'm not certain it is a bug, but this program produces "00" instead of "0":

    #include <stdio.h>
    int main(void)
    {
        printf("%#o\n", 0);
        return 0;
    }

Please Cc: any replies as I am not subscribed to this list.

Peter

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ