Created
March 1, 2020 21:19
-
-
Save davixcky/e26a91982d816f4089bebf3fd740b6ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mylib.h" | |
int main(int __attribute__((__unused__)) argc, char **argv) | |
{ | |
print_message(argv[argc == 1? 0 : argc - 1]); | |
return 0; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mylib.h" | |
#include <stdio.h> | |
void print_message(char *message) | |
{ | |
printf("The message is \"%s\"\n", message); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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