1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include "static_helper.h"

/// static means no one else can call this function
// outside static_helper.c
static int _add(int n1, int n2) {
    return n1 + n2;
}

int add_five(int n) {
    return _add(n, 5);
}

int add_seven(int n) {
    return _add(n, 7);
}

© Copyright 2022 Alexander J. Quinn         This content is protected and may not be shared, uploaded, or distributed.