summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coreutil.c
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
committer ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
commit4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch)
tree55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/util/coreutil.c
parentd132946c6f45aa8d271c6180e86f72dd08243048 (diff)
parent229785f695b26c702c8490792611f59d0366a933 (diff)
Merge pull request #5 from mamedev/master
Sync to base master
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;