Runtime Library (RtlR0.h)

TwinCAT has its own implementation of the runtime library. These functions are declared in RtlR0.h, a part of TwinCAT SDK.

Runtime Library (RtlR0.h) 1: Methods provided

Name

Description

abs

Calculates the absolute value.

atof

Converts a string (char *buf) into a double.

BitScanForward

Searches for a set bit (1) from LSB to MSB.

BitScanReverse

Searches for a set bit (1) from MSB to LSB.

labs

Calculates the absolute value.

memcmp

Compares two buffers.

memcpy

Copies one buffer into another.

memcpy_byte

Copies one buffer into another (bytewise).

memset

Sets the bytes of a buffer to a value.

qsort

QuickSort for sorting a list.

snprintf

Writes formatted data into a character string.

sprintf

Writes formatted data into a character string.

sscanf

Reads data from a character string after specification of a format.

strcat

Appends one character string to another.

strchr

Searches for a character in a character string.

strcmp

Compares two character strings.

strcpy

Copies a character string.

strlen

Determines the length of a character string.

strncat

Appends one character string to another.

strncmp

Compares two character strings.

strncpy

Copies a character string.

strstr

Searches for a character string within a character string.

strtol

Converts a character string into an integer.

strtoul

Converts a character string into an unsigned integer.

swscanf

Reads data from a character string after specification of a format.

tolower

Converts a letter into a lower-case letter.

toupper

Converts a letter into an upper-case letter.

vsnprintf

Writes formatted data into a character string ('\0' scheduling).

vsprintf

Writes formatted data into a character string.

Comments

All functions are based on the C++ runtime library.