-2

My program for the cesar code doesn't work and it looks like there is an infinite loop. link to github of the project

My program should create a txt file which is the same as the first but ciphered. But this file is not created and my program doesn't stop running.

Azk4b
  • 1
  • 1
  • Looking at two lines near the top of [code_vigenere.c](https://github.com/Azk4b/application_chiffrement/blob/main/code_vigenere.c), `fflush(stdin)` has undefined behaviour, and `scanf("%hu\n", &Key)` may cause [problems with the trailing newline](https://stackoverflow.com/questions/19499060/what-is-the-effect-of-trailing-white-space-in-a-scanf-format-string). You've repeated these mistakes in the same file. Not going to look at any others. You can't really expect anyone to read through five remote source files. – Weather Vane Sep 02 '23 at 20:48

0 Answers0