1/*
2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <camkes.h>
8#include <stdlib.h>
9#include <string.h>
10
11#define TO_UPPER_DIST ('A' - 'a')
12
13void i_process(const char *arg) {
14    char *str = strdup(arg);
15    for (char *cptr = str;*cptr != '\0';cptr++) {
16        if (*cptr >= 'a' && *cptr <= 'z') {
17            *cptr += TO_UPPER_DIST;
18        }
19    }
20
21    o_process(str);
22    free(str);
23}
24