Sorry, my bad
here is the code
Code:
#define _XOPEN_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
char key[64] = "123";
char txt[64] = "Test sentence";
printf("\n");
printf("Txt: \"%s\"\n", txt); /*txt gets printed, no problem*/
setkey(key);
encrypt(txt, 0);
printf("Txt: \"%s\"\n", txt); /*don't see anything printed, as it should be due to the encryption*/
encrypt(txt, 1);
printf("Txt: \"%s\"\n", (char*)txt); /*correct lenth, the "" are in the same place as the first printf, but every character is a ' '*/
printf("\n");
return 0;
}