updating oE Using Long Integers

Using Long Integers

When interfacing with C code, some data will be defined as long or long int. This data type can be tricky to use in a portable manner, due to the way that different architectures and operating systems define it.

On all 32-bit architectures on which Euphoria runs, a long int is defined as 32-bits. On 64-bit Windows, a long int is also 32-bits. However, on other 64-bit operating systems, a long int is defined as 64-bits.

To portably peek and poke long int data, you should use peek_longs, peek_longu and poke_long. You can also use sizeof( C_LONG ) to determine the size (in bytes) of a native long int.

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu