Question

How would you pass a 64-bit value to a function in the vxworks console?

For instance this works:

[C INTERP]->tickSet 0x1fffff
value = 2097151 = 0x1fffff

Whereas this:

[C INTERP]->tick64Set 0xfffffffff
C interp: '0xfffffffff' is not a valid integer value.

Doesn't.

Was it helpful?

Solution

You can add 'ull' to denote that it is an unsigned-long-long:

-> 0xfffffffff   
C interp: '0xfffffffff' is not a valid integer value.
-> 0xfffffffffull
value = 68719476735 = 0xfffffffff
-> 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top