diff -r 5653a9626cc0 -r 0b8692959d37 src/ucx/ucx.c
--- a/src/ucx/ucx.c Fri Jul 24 08:00:11 2020 +0200
+++ b/src/ucx/ucx.c Tue Aug 25 12:07:56 2020 +0200
@@ -2,14 +2,23 @@
* @mainpage UAP Common Extensions
* Library with common and useful functions, macros and data structures.
*
- * Latest available source:
+ * Latest available source:
+ *
+ * https://sourceforge.net/projects/ucx/files/
+ *
+ *
+ *
+ * Repositories:
+ *
+ * https://sourceforge.net/p/ucx/code
+ * - or -
*
* https://develop.uap-core.de/hg/ucx
*
*
* LICENCE
*
- * Copyright 2016 Olaf Wintermann. All rights reserved.
+ * Copyright 2017 Mike Becker, Olaf Wintermann All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,4 +43,20 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include "ucx.h"
+#include "ucx/ucx.h"
+
+int ucx_szmul_impl(size_t a, size_t b, size_t *result) {
+ if(a == 0 || b == 0) {
+ *result = 0;
+ return 0;
+ }
+ size_t r = a * b;
+ if(r / b == a) {
+ *result = r;
+ return 0;
+ } else {
+ *result = 0;
+ return 1;
+ }
+}
+