Difference between revisions of "ISARRAY()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "lianjaapi.h" to "lianja_api.h")
 
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
int ISARRAY(order)
 
int ISARRAY(order)
Line 35: Line 35:
  
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
check_array()
 
check_array()

Latest revision as of 07:32, 11 April 2013

PURPOSE

Is the parameter an array

SYNONYM

None

SYNOPSIS

#include "lianja_api.h"
 
int	ISARRAY(order)
 
<input parameters>
int	order;		/* Placement in actual parameter list		*/
 
<output parameters>
none

DESCRIPTION

The function checks if the specified parameter is an array and returns 1 if true, or 0 if false. The order specifies the actual placements in the parameter list.

EXAMPLE

The following example returns .T. if the first parameter passed is an array, otherwise .F. is returned.

Example Lianja script:

declare m_values[10]
m_isarray=check_array(m_values)
return

Example 'C' function:

#include "lianja_api.h"
 
check_array()
{
    retl(ISARRAY(1));
}

SEE ALSO

_parinfa(), _parinfo(), ALENGTH(), ARRAY_ALEN(), ARRAY_DEFINE(), ARRAY_LOOKUP(), ARRAY_UPDATE(), MEMVAR_DEFINE(), MEMVAR_LOOKUP(), MEMVAR_UPDATE()