level7: add source code
This commit is contained in:
parent
fc40e2e002
commit
c00f78c45b
37
level7/source.c
Normal file
37
level7/source.c
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
char c[80];
|
||||||
|
|
||||||
|
void m(void)
|
||||||
|
{
|
||||||
|
time_t current_time;
|
||||||
|
|
||||||
|
current_time = time((time_t *)0x0);
|
||||||
|
printf("%s - %d\n", c, current_time);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int ac, char **av)
|
||||||
|
{
|
||||||
|
int **a;
|
||||||
|
int **b;
|
||||||
|
FILE *__stream;
|
||||||
|
|
||||||
|
*a = (int *)malloc(8);
|
||||||
|
*a[0] = 1;
|
||||||
|
a[1] = malloc(8);
|
||||||
|
|
||||||
|
*b = (int *)malloc(8);
|
||||||
|
*b[0] = 2;
|
||||||
|
b[1] = malloc(8);
|
||||||
|
|
||||||
|
strcpy((char *)a[1], av[1]);
|
||||||
|
strcpy((char *)b[1], av[2]);
|
||||||
|
__stream = fopen("/home/user/level8/.pass", "r");
|
||||||
|
fgets(c, 68, __stream);
|
||||||
|
puts("~~");
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user