From 1fb5cf2663467ec6fa0dc5f52326cf28c2fcd423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 9 Dec 2020 11:17:18 +0100 Subject: [PATCH] Initial commit. --- LICENSE | 24 +++++++++++++++++++++ README | 9 ++++++++ Trinity.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 LICENSE create mode 100644 README create mode 100644 Trinity.c diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README b/README new file mode 100644 index 0000000..62b9a17 --- /dev/null +++ b/README @@ -0,0 +1,9 @@ +=============== +*** Trinity *** +=============== +A C programmer's explanation of the Holy Trinity. + +# License +--------- +It's public domain under the Unlicense. Use it however you want, but it +comes without warranty. diff --git a/Trinity.c b/Trinity.c new file mode 100644 index 0000000..7bd42ab --- /dev/null +++ b/Trinity.c @@ -0,0 +1,63 @@ +/* + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * For more information, please refer to + */ + +#include + +int main() { + int God = 1; + int *Father = &God; + int *Son = &God; + int *HolySpirit = &God; + + if(&God == Father) + puts("The Father is God."); + else + puts("The Father is not God."); + if(&God == Son) + puts("The Son is God."); + else + puts("The Son is not God."); + if(&God == HolySpirit) + puts("The Holy Spirit is God."); + else + puts("The Holy Spirit is not God."); + + if(&Father == &Son) + puts("The Father is the Son."); + else + puts("The Father is not the Son."); + if(&Father == &HolySpirit) + puts("The Father is the Holy Spirit."); + else + puts("The Father is not the Holy Spirit."); + if(&Son == &HolySpirit) + puts("The Son is the Holy Spirit."); + else + puts("The Son is not the Holy Spirit."); + + return 0; +}