Main file

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
486 B
2
Indexable
Never
#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]);
    }
}