mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
047ae0d4d8
This commit applies our `clang-format` rules globally. From now on, all commits should respect our configuration file. Pretty large change.
24 lines
430 B
C
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;
|
|
}
|