1#include <stdio.h>
 2
 3// A simple function definition
 4void hello() {
 5    printf("Hello, world!\n");
 6}
 7
 8// A function with parameters
 9int add(int a, int b) {
10    return a + b;
11}
12
13// A function returning a pointer
14int* get_pointer(int* x) {
15    return x;
16}
17
18// A function declaration (prototype)
19void declared_only(int x);
20
21// A pointer to a function declaration
22char* (*function_ptr_return)(int);
23
24// A complex declaration
25static inline const char* complex_func(const int* const ptr, void (*callback)(int)) {
26    return "complex";
27}
28
29int main() {
30    hello();
31    return 0;
32}
33
34// Case sensitivity tests
35void FooBar() {}
36void foobar() {}
37void FOOBAR() {}