Skip to main content

IAR Embedded Workbench for RX 5.20

__strFind

In this section:
Syntax
__strFind(macroString, pattern, position)
Parameters
macroString

A macro string.

pattern

The string pattern to search for

position

The position where to start the search. The first position is 0

Return value

The position where the pattern was found or -1 if the string is not found.

For use with

All C-SPY drivers.

Description

This macro searches a given string (macroString) for the occurrence of another string (pattern).

Example
__strFind("Compiler", "pile", 0)  = 3
__strFind("Compiler", "foo", 0)   = -1
See also

Macro strings.