1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/caesar-cipher/solutions/c/function/string.h

24 lines
394 B
C
Raw Normal View History

2021-10-19 09:37:49 +02:00
#ifndef __STRING__
#define __STRING__
#define ALPHABET "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
/**
* @brief Shift the alphabet by a given amount.
*
* @param shift
* @return char*
*/
char* string_shift_alphabet(int shift);
/**
* @brief Encrypts a string using the Caesar cipher.
*
* @param string
* @param shift
* @return char*
*/
char* string_caesar_cipher(char* string, int shift);
#endif