Skip to content

Instantly share code, notes, and snippets.



Last active Nov 11, 2019
What would you like to do?
// This file implements the interface described in its header (greet.h)
#include "greet.h"
#include <stdio.h>
void greet(char* name) {
printf("Hello, %s!\n", name);
// This file describes the public interface greet.c should implement
// In this case, a single function, greet()
#pragma once // Ensures header is only included once by the compiler
void greet(char* name);
// This file is our entry-point
#include "greet.h" // Include the header so we can call greet()
int main(void) {
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment