This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/main.c

22 lines
369 B
C
Raw Normal View History

#include <stdio.h>
int main( int argc, char *argv[] )
{
int i;
for( i = 0; i < argc; ++i ) {
printf( "argv[%d] = %s\n", i, argv[i] );
}
return( 0 );
}
#ifdef _WIDE_
int wmain( int wargc, wchar_t *wargv[] )
{
int i;
for( i = 0; i < wargc; ++i ) {
wprintf( L"wargv[%d] = %s\n", i, wargv[i] );
}
return( 0 );
}
#endif