summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coreutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/coreutil.c')
-rw-r--r--src/lib/util/coreutil.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/util/coreutil.c b/src/lib/util/coreutil.c
index fbc807caad3..a7c2ccb0f22 100644
--- a/src/lib/util/coreutil.c
+++ b/src/lib/util/coreutil.c
@@ -67,6 +67,18 @@ int gregorian_is_leap_year(int year)
/* months are one counted */
+
+/**
+ * @fn int gregorian_days_in_month(int month, int year)
+ *
+ * @brief Gregorian days in month.
+ *
+ * @param month The month.
+ * @param year The year.
+ *
+ * @return An int.
+ */
+
int gregorian_days_in_month(int month, int year)
{
if (month == 2)
@@ -82,6 +94,15 @@ int gregorian_days_in_month(int month, int year)
MISC
***************************************************************************/
+/**
+ * @fn void rand_memory(void *memory, size_t length)
+ *
+ * @brief Random memory.
+ *
+ * @param [in,out] memory If non-null, the memory.
+ * @param length The length.
+ */
+
void rand_memory(void *memory, size_t length)
{
static UINT32 seed = 0;