This will make is easier for others to share README.md files while requiring them to attribute the file when using it.
1.5 KiB
1.5 KiB
Best abuse of the rules:
Diomidis Spinellis (currently at Imperial College, London, England)
1 Myrsinis Str.
GR-145 62 Kifissia
GREECE
To build:
make all
and then type a C program into followed by EOF two times (^D^D).
NOTE: this entry will not compile with clang. Also be advised that gcc in macOS is actually clang so this will not work even with the default compiler in macOS.
Try:
make clobber all
main()
{
printf("Hello world\n");
}
^D
^D
./spinellis
make clobber all
int main()
{
int i;
for (i = 0; i < 5; ++i)
printf("%d\n", i);
}
^D
^D
./spinellis
Judges' comments
We enjoyed this entry this year, however in the future programs must be able to be compiled from within a Makefile without the need of human intervention.
The author originally wrote:
This program can be configured to do almost everything.
The configuration is done during compile time by typing
in, C code, that one would like the program to perform.
A trivial example is given in the `how to compile' section
but the possibilities are clearly limited only by your
imagination and programming skills.
Copyright and CC BY-SA 4.0 License:
This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. You are free to share and adapt this file under the terms this license:
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
For more information, see: https://creativecommons.org/licenses/by-sa/4.0/