X-Git-Url: https://git.dlugolecki.net.pl/?p=vlp.git;a=blobdiff_plain;f=src%2Fint%2Futil.c;fp=src%2Fint%2Futil.c;h=898587ddc3713799f0d232620b79d425791f836d;hp=96d68858edf5ba40a6badde659384eb13b07f200;hb=92bd051b4d3877757e094b572e11ff2dda333d38;hpb=fdd7cc36378cfdd1692885c39f0e8ccd3ea09c1d diff --git a/src/int/util.c b/src/int/util.c index 96d6885..898587d 100644 --- a/src/int/util.c +++ b/src/int/util.c @@ -37,7 +37,10 @@ or Andrzej Salwicki #include -/* Utility routines */ +/** + * @file + * @brief Utility routines + */ /** * Compute entier (floor) @@ -136,7 +139,7 @@ void abend(char *msg) static int ranpat1 = 7, ranpat2 = 503, ranpat3 = 15661; /** - * Initialize generator + * Initializes random number generator */ void ranset() { @@ -149,7 +152,9 @@ void ranset() } /** - * Produce next pseudo random number + * Produces next pseudo random number + * + * @see ranset must be invoked before running this function */ double prandom() { @@ -177,6 +182,10 @@ double prandom() /** * Copy a block of memory + * + * @param from[in] source block to copy from + * @param to[out] destination block to copy to + * @param len number of character to copy */ void moveblock(char *from, char *to, word len) {