Mail Archives: cygwin/1999/06/25/23:11:54
------=_NextPart_000_0004_01BEBF56.F3DD1E80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am trying to compile a program, I have some unsigned long integers? =
How do I represent them? I try to use them like this
typedef unsigned long int ulo_int;
ulo_int money;
/*money is loaded from a file */
sprintf(buf, "You have %l dollars.", money);
gcc give me a warning : "warning : int format, long int arg (arg #)
how do you use unsigned long int's? =20
=
-/\/ick \/.
------=_NextPart_000_0004_01BEBF56.F3DD1E80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I am trying to compile a program, I =
have some=20
unsigned long integers? How do I represent them? I try to use them like=20
this</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>typedef unsigned long=20
int =
ulo_int;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT=20
size=3D2>ulo_int &nb=
sp; &nbs=
p;  =
; =20
money;</FONT></DIV>
<DIV><FONT size=3D2> /*money is loaded from a file =
*/</FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>sprintf(buf, "You have %l =
dollars.",=20
money);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 size=3D2>gcc give me a warning : =
"warning : int=20
format, long int arg (arg #)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>how do you use unsigned long=20
int's? </FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000=20
size=3D2> &nbs=
p;  =
; =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p; =20
-/\/ick \/.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0004_01BEBF56.F3DD1E80--
- Raw text -