Let say I want to write predefine a pythagorean theorem in a C library where a = b (square) + c (square). Then I would use the header #include <pythagorean.h>, and then call the function c = pythagorean(a, b)
How would I do this ? Below is a code example.
==========================
Code:
#include <stdio.h>
#include <string.h>
#include <pythagorean.h>
main()
{
int c;
int a =10;
int b = 20;
c = pythagorean(a, b);
}