1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/acronyms/solutions/c/function/solution.c

18 lines
337 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
#include "character.h"
#include "input.h"
#include "string.h"
int main() {
char* string = input();
string_remove_character(string, '"');
string_to_uppercase(string);
char* result = string_acronym(string);
printf("%s\n", result);
free(string);
free(result);
return EXIT_SUCCESS;
}