This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Problems with printf and long long int
- From: "Rick Davis" <rickdavisjr at comcast dot net>
- To: "'Yegor Yefremov'" <Yegor dot Yefremov at Visionsystems dot de>,<ecos-discuss at sources dot redhat dot com>
- Date: Fri, 7 Oct 2005 08:46:07 -0400
- Subject: [ECOS] RE: Problems with printf and long long int
- Reply-to: <rickdavisjr at comcast dot net>
You have to use %lld.
%ll indicates long iong
Rick
-----Original Message-----
From: Yegor Yefremov [mailto:Yegor.Yefremov@Visionsystems.de]
Sent: Friday, October 07, 2005 8:42 AM
To: ecos-discuss@sources.redhat.com
Subject: Problems with printf and long long int
Hi,
I've define long long int variable and try to print its value. In
uClinux I use %d or %ld and get the value without a problem. In eCos I
see only zero. The value can contain one digit or more it doesn't
matter.
What's the problem? How can I print the value of a long long int
variable?
Best regards,
Yegor Yefremov
--
VS Vision Systems GmbH, Industrial Image Processing Aspelohe 27A,
D-22848 Norderstedt, Germany
Mail: Yegor.Yefremov@VisionSystems.de Tel.: +49-40-528 401-0
http://www.VisionSystems.de Fax.: +49-40-528 401-99
-------------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss