mb_get_array_element_count |
![]() ![]() |
int mb_get_array_element_count( LPARRAY pArr )
Returns the total number of elements in the array.
Example
///////////////////////////////////////////////////////////////////////////// // Return the type of array as a string int _get_variable_type( mb_interpreter_t* s, void** l ) { // Parse Parameter BEGIN_PARSE( s, l ) POP_ARRAY( pArr ) END_PARSE
// Get the type of array mb_type_e type;
type = mb_get_array_type( pArr );
// Need a buffer to hold output from mb_make_value_t char buffer[256];
// Copy to output string that we can return COPY_STRING( pOutput, mb_value_e_to_string( type, buffer ) );
// Return the type as string RETURN_STRING( pOutput ); }
|