Mega Code Archive
Categories
/
C
/
Code Snippets
Check the command line input
#include
int main(int argc, char *argv) { if ( argc > 1 ) printf ( "You have initiated execution with arguments."); }