Skip to content

Instantly share code, notes, and snippets.

@davixcky
Created March 1, 2020 21:19
Show Gist options
  • Save davixcky/e26a91982d816f4089bebf3fd740b6ef to your computer and use it in GitHub Desktop.
Save davixcky/e26a91982d816f4089bebf3fd740b6ef to your computer and use it in GitHub Desktop.
#include "mylib.h"
int main(int __attribute__((__unused__)) argc, char **argv)
{
print_message(argv[argc == 1? 0 : argc - 1]);
return 0;
}
#include "mylib.h"
#include <stdio.h>
void print_message(char *message)
{
printf("The message is \"%s\"\n", message);
}
#ifndef MYLIB_H
#define MYLIB_H
void print_message(char *);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment