]> git.ozlabs.org Git - ccan/blobdiff - junkcode/tterribe@email.unc.edu-nmbrthry/choose.h
New junkcode from Tim.
[ccan] / junkcode / tterribe@email.unc.edu-nmbrthry / choose.h
diff --git a/junkcode/tterribe@email.unc.edu-nmbrthry/choose.h b/junkcode/tterribe@email.unc.edu-nmbrthry/choose.h
new file mode 100644 (file)
index 0000000..254f64f
--- /dev/null
@@ -0,0 +1,11 @@
+#if !defined(_choose_H)
+# define _choose_H (1)
+
+/*Computes the number of combinations of _n items, taken _m at a time without
+   overflow.
+  _n: The total number of items.
+  _b: The number taken at a time.
+  Return: The number of combinations of _n items taken _m at a time.*/
+unsigned choose(int _n,int _m);
+
+#endif