Mega Code Archive

 
Categories / C / Code Snippets
 

Check the command line input

#include <stdio.h> int main(int argc, char *argv) { if ( argc > 1 ) printf ( "You have initiated execution with arguments."); }