-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.c
33 lines (28 loc) · 785 Bytes
/
test.c
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
//This program is not compilable.
// By Edwin Sha
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void copy1( const char *a ){
char buf[320];
int i, j, k;
printf("Inside COPY\n");
strcpy(buf,a);
}
void Doing_nothing() {
int i, a[200];
printf("Inside Doing_nothing\n");
for (i=0; i < 100; i++)
a[i] =2;
}
void main( int argc, char *argv[] ) {
printf("\n *********************************\n");
printf("This is a newly developed WEB server. \n");
printf(" ****************************************\n") ;
printf(" ******The web server is executing*******\n") ;
printf(" ****************************************\n") ;
if (argc >=2 ) {
Doing_nothing();
copy1( argv[1] );
}
}