discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: One quick question in Objective C


From: JP Young
Subject: RE: One quick question in Objective C
Date: Wed, 17 Oct 2001 09:02:11 -0500

One trick that I have used in the past is to make it an NSNumber (using numberWithLongLong) and then just print the object using %@. A little more work than required, but should be effective.
 
        -- J. P.
-----Original Message-----
From: ramana rao [mailto:nalluri@orillion.com]
Sent: Wednesday, October 17, 2001 1:04 AM
To: discuss GNUstep; jpyoung; Kotesh M V; Radhika I V; Krishna Kumar; Lakshmi Prasuna; Vijaya Bhaskar Reddy K; Mahendra Kumar Sarma
Subject: One quick question in Objective C

 
Hi,
 
One quick question in OBjective C,
 
In NSlog or in printf, to print a variable we give type specifier like
 
%d    for     "int"
%ld    for     "long int"
%f      for     "float" or "double"
 
what?  for     "long long"
 
does any body have idea which type specifier should we use to print "long long" variable
 
 
thanks for any help i may get
 
 
Ramana Rao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]