bootstrap.c 440 B

12345678910111213141516
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. #include <stdio.h>
  4. int main(int argc, const char ** argv, const char ** envp)
  5. {
  6. printf("User Program Started\n");
  7. printf("# of Arguments: %d\n", argc);
  8. for (int i = 0 ; i < argc ; i++)
  9. printf("argv[%d] = %s\n", i, argv[i]);
  10. return 0;
  11. }