Files
harbour-core/tests/cmdarg.c
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

18 lines
652 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 );
}