Files
harbour-core/tests/cmdarg.c
Przemysław Czerpak 96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00

17 lines
651 B
C

#include "hbapi.h"
void hb_cmdargTEST( void )
{
char * pszArg;
printf( "INFO: %i\n", hb_cmdargCheck( "INFO" ) );
printf( " F: %s\n", pszArg = hb_cmdargString( "F" ) ); if( pszArg ) hb_xfree( pszArg );
printf( " Fn: %i\n", hb_cmdargNum( "F" ) );
printf( "TEMP: %s\n", pszArg = hb_cmdargString( "TEMP" ) ); if( pszArg ) hb_xfree( pszArg );
printf( "INFO: %i\n", hb_cmdargCheck( "INFO" ) );
printf( " F: %s\n", pszArg = hb_cmdargString( "F" ) ); if( pszArg ) hb_xfree( pszArg );
printf( " Fn: %i\n", hb_cmdargNum( "F" ) );
printf( "TEMP: %s\n", pszArg = hb_cmdargString( "TEMP" ) ); if( pszArg ) hb_xfree( pszArg );
}