Hello
how can i write a % in a string?
ram1 db "using %d",37,"/%d mb ram",0
should turn to: using 91%/256 mb ram
but it dosent...
it turn to "using 91/256 mb ram" why? :S
how can i write a % in a string?
ram1 db "using %d",37,"/%d mb ram",0
should turn to: using 91%/256 mb ram
but it dosent...
it turn to "using 91/256 mb ram" why? :S
oh my god...so simpel
now it works:
ram1 db "using %d",37,37,"/%d mb ram",0
:stupid:
now it works:
ram1 db "using %d",37,37,"/%d mb ram",0
:stupid:
You're using wsprintf or similar, right?
Using the constant 37 instead of putting a % in the string makes no difference - your binary is the same. % is, as you probably already know, used for string formatting codes. How do you get a % in the output then? Simple, put %% in your string.
Using the constant 37 instead of putting a % in the string makes no difference - your binary is the same. % is, as you probably already know, used for string formatting codes. How do you get a % in the output then? Simple, put %% in your string.