August 2019
Beginner to intermediate
798 pages
17h 2m
English
This subsection will present you with the C code for the example. It comes in two files: callC.h and callC.c. The included file (callC.h) contains the next code:
#ifndef CALLC_H #define CALLC_H void cHello(); void printMessage(char* message); #endif
The C source file (callC.c) contains the next C code:
#include <stdio.h>
#include "callC.h"
void cHello() {
printf("Hello from C!\n");
}
void printMessage(char* message) {
printf("Go send me %s\n", message);
}
Both the callC.c and callC.h files are stored in a separate directory, which in this case is going to be callClib. However, you can use any directory name you want.
Read now
Unlock full access