]> git.ozlabs.org Git - ccan/blobdiff - junkcode/tterribe@email.unc.edu-nmbrthry/gcd.h
New junkcode from Tim.
[ccan] / junkcode / tterribe@email.unc.edu-nmbrthry / gcd.h
diff --git a/junkcode/tterribe@email.unc.edu-nmbrthry/gcd.h b/junkcode/tterribe@email.unc.edu-nmbrthry/gcd.h
new file mode 100644 (file)
index 0000000..0cc02cd
--- /dev/null
@@ -0,0 +1,13 @@
+#if !defined(_gcd_H)
+# define _gcd_H (1)
+
+/*Computes the gcd of two integers, _a and _b.
+  _a: The first integer of which to compute the gcd.
+  _b: The second integer of which to compute the gcd.
+  Return: The non-negative gcd of _a and _b.
+          If _a and _b are both 0, then 0 is returned, though in reality the
+           gcd is undefined, as any integer, no matter how large, will divide 0
+           evenly.*/
+int gcd(int _a,int _b);
+
+#endif