|
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()
{
char c = '\0';
printf("c: %c , 111111 \n", c);
return 0;
}
As shown in the above code, musl library printing will only display "c:", and the following "11111" data will not be displayed.
Under mac and linux systems, the code will print "c:, 111111" completely.
Best
ye
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.