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
Posted on 2003-11-30 13:08:05 by bj1500
oh my god...so simpel
now it works:
ram1 db "using %d",37,37,"/%d mb ram",0

:stupid:
Posted on 2003-11-30 13:15:02 by bj1500
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.
Posted on 2003-11-30 13:15:59 by f0dder