formZ SDK | 5.0 API Reference | System | Script Only

# fz_std_strncmp

Description

Compares at most n characters of str1 to str2.

Parameters

str1 [Input]

string1

str2 [Input]

string2

n [Input]

the number of characters to compare.

Range: 1 <= n <= 255

Returns

0 if they are equal, less than 0 if str1 is less than str2 and greater than 0 if str1 is greater than str2.

Availability

5.0.0.0