Skip to content

Instantly share code, notes, and snippets.

@gaconnet
Created September 25, 2010 21:49
Show Gist options
  • Save gaconnet/597332 to your computer and use it in GitHub Desktop.
Save gaconnet/597332 to your computer and use it in GitHub Desktop.
// file: one_a.c
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include "one_b.c"
// Compile:
// gcc -Wall -std=c99 one_a.c
// Run:
// ./a.out
void this_function_from_one_a()
{
printf("Goodbye");
}
int main(void) {
this_function_from_one_a();
that_function_from_one_b(3);
return 0;
}
// file: one_b.c
void that_function_from_one_b(int n) {
for(int i = 0; i < n; ++i) {
printf(", cruel");
}
printf(" world.\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment