-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgcArgv.c.save
More file actions
46 lines (42 loc) · 866 Bytes
/
ArgcArgv.c.save
File metadata and controls
46 lines (42 loc) · 866 Bytes
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
/*@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 z = argv[1];
if (argc!=2 || isalpha(argv[1]) || *argv[1] = " " )
{
printf("Usage: ./caesar key");
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]);
}**/