Files
revng-revng/tests/Runtime/function-call.c
T
Alessandro Di Federico 047ae0d4d8 Apply clang-format globally
This commit applies our `clang-format` rules globally. From now on, all
commits should respect our configuration file.

Pretty large change.
2018-09-21 20:08:45 +02:00

24 lines
430 B
C

/*
* This file is distributed under the MIT License. See LICENSE.md for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int half(int parameter) {
return parameter / 2;
}
int root(char *buffer, size_t size) {
int result = 412;
result += half(result);
result += 81;
return result;
}
int main(int argc, char *argv[]) {
printf("%d\n", root(argv[1], strlen(argv[1])));
return EXIT_SUCCESS;
}