I found out that I can not use "%llu" or "%lld" in xv6. All I could use is "%d" for printing integer. Is there any way I can print long long integer in xv6?
I tried converting long long to string, but things didn't go well.
I found out that I can not use "%llu" or "%lld" in xv6. All I could use is "%d" for printing integer. Is there any way I can print long long integer in xv6?
I tried converting long long to string, but things didn't go well.
Copyright © 2021 Jogjafile Inc.
You can split up the number. With a 32-bit
int
this should work for values up to4294967295999999999
.Output
For signed values, detect the sign first, output
-
and negate.