//* multifile project example - lib.h *

#ifndef _LIB_H #define _LIB_H // the above can be replaced by non-standard-C #pragma once #ifdef __cplusplus extern "C" { // this will activate whenever this header is included in a .cpp file #endif double Distance_Between_Points(double point1x, double point1y, double point2x, double point2y); double Area_of_Triangle(double leg_lenght_a, double leg_lenght_b, double leg_lenght_c); #ifdef __cplusplus } #endif #endif /* _LIB_H */