ispacked()

ispacked()

Description

Determine whether a string is packed or unpacked.

Syntax

ispacked(string[]);

Parameters

Variable

Input

Variable

Input

string[]

The string to verify the packed/unpacked status.

Returns

Return value

Return explanation

TRUE

Packed string.

FALSE

Unpacked string.

Function call example

Example of checking string format
new data1[10]=''HELLO1234''; //unpacked string new data2[6]="hello"; //packed string new info; new info2; main(){ info = ispacked(data1); //will return false info2 = ispacked(data2); //will return true while(1){ Delay(100); } }

Notes and Warnings

The user-defined + operator forwards to this function.