1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

feat(cli): add --all option to run test command

This commit is contained in:
Divlo
2021-10-13 21:43:45 +02:00
parent aeff95e691
commit 0a27b9e1a1
47 changed files with 1657 additions and 1773 deletions

View File

@ -29,7 +29,7 @@ char* string_caesar_cipher(char* string, int shift) {
for (size_t index = 0; index < string_length; index++) {
char letter = string[index];
if (letter != ' ') {
for (char index_alphabet = 0; index_alphabet < ALPHABET_LENGTH; index_alphabet++) {
for (int index_alphabet = 0; index_alphabet < ALPHABET_LENGTH; index_alphabet++) {
char current_letter = 'A' + index_alphabet;
if (string[index] == current_letter) {
letter = shifted_alphabet[index_alphabet];