LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

print long long int

Is there a way in CVI 8.0.1 to print/display a long long int (64 bit)?  AKA __int64.
C99 introduced the "ll" (ell ell) format specifier.  CVI provides an intrinsic 64 bit integer data type, but can you display/print it?
 
CVI uses a C89 compiler.  When is NI going to provide a C99 compiler?  The standard's been around for many years now - and for the $$ NI gets for CVI, it's not too much to ask for a C99 compliant compiler - they've managed to allow the use a external and optimizing compilers, why not a C99 native compiler?  With the coming of 64 bit micros, it would seem that this is overdue ...
 
Menchar
0 Kudos
Message 1 of 4
(3,635 Views)

 Never mind 😉

Searched the kb under __int64 and found some info.

Yup, NI needs to give us a C99 compiler.  It's a bit of a chore to code with C anyway (non OO) and even more so with a C89 compiler.

Menchar

0 Kudos
Message 2 of 4
(3,634 Views)
Also, take a look at this post Smiley Wink


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 4
(3,631 Views)

Thanks Roberto, that's the thread I had found.

But - still can't print a long long, but can print a __int64.  So need to figure how to convert long long to __int64, if possible.  long long is really typedef for a union of structs, whereas the __int64 is a true intrinsic data type. 

Bob

0 Kudos
Message 4 of 4
(3,626 Views)