Main file
unknown
c_cpp
4 years ago
486 B
9
Indexable
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
char *op1(){
FILE *fp;
char buff[255];
char *keya;
fp = fopen("key.txt", "r+");
if(fp == NULL){
printf("Please don't move your file");
return -1;
}
fgets(buff, sizeof(buff), (FILE*)fp);
keya = buff;
fclose(fp);
move_(keya);
return keya;
}
int main(){
int x[30] = encryption("adam");
for(int n = 0; n < 30; n++){
printf("%d ", x[n]);
}
}Editor is loading...