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

17 lines
326 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 = string_replace(string, '"', '\0');
string = string_to_upper(string);
string = string_acronym(string);
printf("%s\n", string);
free(string);
return EXIT_SUCCESS;
}