libpointer datatype

C/Nelson equivalent data types

Description

This table shows these Nelson types with their equivalent C types.

Nelson typeC type

logical (scalar)

uint8_t

uint8 (scalar)

uint8_t

int8 (scalar)

int8_t

uint16 (scalar)

uint16_t

int16 (scalar)

int16_t

uint32 (scalar)

uint32_t

int32 (scalar)

uint32_t

uint64 (scalar)

uint64_t

int64 (scalar)

int64_t

float, single (scalar)

float

double (scalar)

double

cstring (string utf-8)

char *

wstring (string unicode)

wchar_t *

void

void

logicalPtr (logical vector or matrix)

uint8_t *

uint8Ptr (uint8 vector or matrix)

uint8_t *

int8Ptr (int8 vector or matrix)

int8_t *

uint16Ptr (uint16 vector or matrix)

uint16_t *

int16Ptr (int16 vector or matrix)

int16_t *

uint32Ptr (uint32 vector or matrix)

uint32_t *

int32Ptr (int32 vector or matrix)

int32_t *

int64Ptr (uint64 vector or matrix)

int64_t *

uint64Ptr (uint64 vector or matrix)

uint64_t *

floatPtr, singlePtr (single vector or matrix)

float *

doublePtr (double vector or matrix)

double *

voidPtr

void *

libpointer

void *, uint8_t *, int8_t *, int16_t *, uint16_t *, ...

See also

libpointer, dlsym.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated