-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgcArgv.c
More file actions
52 lines (45 loc) · 1 KB
/
ArgcArgv.c
File metadata and controls
52 lines (45 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*@Shyed Shahriar Housaini
Copyright: @uthor*/
/**
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <windows.h>
///#include <threads.h>
#include <conio.h>
#include <dos.h>
#include <direct.h>
#include <math.h>
#include <stdbool.h>
#include<ctype.h>
#include <string.h>
#include <strings.h>
}**/
//#include <cs50.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <ctype.h>
int main (int argc, char *argv[])
{
/// int k = argv[1];
if (argc!=2)
/// isalpha(argv[1]) || k == " " )
{
printf("Usage: ./caesar key. Please put in a integer key in the command line.\n");
return 1;
}
else
{
printf(" %s\n", argv[0]);
printf(" \n" );
printf(" %s\n", argv[1]);
}
printf(" \n" );
return 0;
}
/** for (int i=0; i<10; i++)
{
printf(" argv[%d] = %s\n", i, argv[i]);
}**/