Skip to main content

IAR Embedded Workbench for RL78 5.20

__subString

In this section:
Syntax
__subString(macroString, position, length)
Parameters
macroString

A macro string.

position

The start position of the substring. The first position is 0.

length

The length of the substring

Return value

A substring extracted from the given macro string.

For use with

All C-SPY drivers.

Description

This macro extracts a substring from another string (macroString).

Example
__subString("Compiler", 0, 2)

The resulting macro string contains Co.

__subString("Compiler", 3, 4)

The resulting macro string contains pile.

See also

Macro strings.