aboutsummaryrefslogtreecommitdiffstats
path: root/crazy-swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'crazy-swap.c')
-rw-r--r--crazy-swap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crazy-swap.c b/crazy-swap.c
index e06136a..74fe3c7 100644
--- a/crazy-swap.c
+++ b/crazy-swap.c
@@ -1,3 +1,15 @@
+/*
+ * Copyright (C) 2014 Tomasz Kramkowski <tk@the-tk.com>
+ *
+ * This program is free software. It is licensed under version 3 of the
+ * GNU General Public License.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see [http://www.gnu.org/licenses/].
+ */
+
+// Don't try this at home.
+
static inline void swap(int *a, int *b)
{
*a=*a^*b;