Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 8 Support Manager Functions

StrLen

syntax

int32

StrLen(s);

StrLen returns the length of a C string.

 

Parameter

Type

Description

 

s

CStr

Pointer to a C string.

returns

The number of characters in the C string, not including the NULL terminating

 

 

character.

 

 

 

 

 

StrNCaseCmp

syntax int32 StrNCaseCmp(s1, s2, n);

StrNCaseCmp lexically compares two strings to determine whether one is less than, the same as, or greater than the other, limiting the comparison to n characters. StrNCaseCmp ignores differences in case in performing the comparison.

Parameter

Type

Description

s1

CStr

Pointer to a C string.

s2

CStr

Pointer to a C string.

n

uInt32

Maximum number of characters to compare.

returns

<0, 0, or >0 if s1 is less than, the same as, or greater than s2. Returns <0 if s1

 

is an initial substring of s2.

 

 

 

StrNCmp

syntax int32 StrNCmp(s1, s2, n);

StrNCmp lexically compares two strings to determine whether one is less than, the same as, or greater than the other, limiting the comparison to n characters.

Parameter

Type

Description

s1

CStr

Pointer to a C string.

s2

CStr

Pointer to a C string.

n

uInt32

Maximum number of characters to compare.

returns

<0, 0, or >0 if s1 is less than, the same as, or greater than s2. Returns <0 if s1

 

is an initial substring of s2.

 

© National Instruments Corporation

8-23

LabVIEW Code Interface Reference Manual

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]