SourcePoint Intel Help

Table of Contents

strlen

Return the length of a string.

Syntax

[result =] strlen(string-expr)

Where:

result

specifies a debug object of type ord4 to which the function return value is assigned. If name is not specified, the return value is displayed on the next line of the screen.

string-expr

specifies an nstring variable, a quoted string constant.

Discussion

The strlen command returns the length of an ASCII string, excluding any null terminating character.

Example 1

Command input:

define nstring month = "October"
strlen(month)

Result:

7T

Example 2

Command input:

define nstring year = "2010"

define int4 answer = strlen(year)
answer

Result:

4T

ย 

ย