B1KMusic

Untitled

Sep 2nd, 2015
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void error(char *msg){
  2.     fputs(msg, stderr);
  3. }
  4.  
  5. int main(int argc, char **argv){
  6.     if (argc < 1){
  7.         error("Usage: ./my_program [option] [file]");
  8.         return 1; // The OS/Shell will interpret this as a failure, sometimes saying "[program] returned with an exit status of 1"
  9.     }
  10.     // [do stuff]
  11.     return 0; // The OS/Shell will interpret this as a success
  12. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×