Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the int64_t format specifier for NSString [duplicate]

I cannot find the right format specifier for int64_t

int64_t var;

[NSString stringWithFormat:@"value is: %?? ",var];
like image 477
Nicolas Manzini Avatar asked May 07 '14 13:05

Nicolas Manzini


1 Answers

Try:

int64_t var;    
[NSString stringWithFormat:@"value is: %lld",var];
like image 173
tiguero Avatar answered Nov 14 '22 23:11

tiguero