mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-12-08 00:45:29 +01:00
18 lines
315 B
C
18 lines
315 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "character.h"
|
|
#include "input.h"
|
|
#include "string.h"
|
|
|
|
int main() {
|
|
char* string = input();
|
|
int shift;
|
|
scanf("%d", &shift);
|
|
char* result = string_caesar_cipher(string, shift);
|
|
printf("%s\n", result);
|
|
free(string);
|
|
free(result);
|
|
return EXIT_SUCCESS;
|
|
}
|