Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_4D66BAF27DD772ADE6C0E817DA7CC1F57609@qq.com>
Date: Thu, 10 Oct 2024 09:37:10 +0800
From: " ." <yedexi1996@...com>
To: "musl" <musl@...ts.openwall.com>
Subject: Question about the printf()

Hi
I have one question in printf.
When I use printf to print data, I find that printf hides the data after '\0' when printing '\0'.


int main()
{
&nbsp; &nbsp; char c = '\0';
&nbsp; &nbsp; printf("c: %c , 111111 \n", c);
&nbsp; &nbsp; return 0;
}
As shown in the above code, musl library printing will only display "c:", and the following "11111" data will not be displayed.&nbsp;
Under mac and linux systems, the code will print "c:, 111111" completely.
Best&nbsp;
ye

&nbsp;
Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.