In standard C, the "u" replaces the "d", so no, I didn't mix it up.

That is, of course, unless the Plan 9 C compilers require using nonstandard format specifiers for unsigned integers - to be honest, I haven't really checked that.


On 5/19/25 06:35, sirjofri via 9fans wrote:
19.05.2025 11:06:20 Frank D. Engel, Jr. <[email protected]>:
Just to point it out, you should technically be using %llu instead of %lld for 
an unsigned value, though that would not explain the problems described here.
Are you sure you don't mix this up with %ulld?

Idk, I never used scanf on plan 9. I can imagine that using the proper format 
fixes the problems, though I also don't fully understand why the problems occur 
like they're described.

sirjofri

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T3df06e15ad1bc104-M955764cad20ccad45e3a8cda
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to