added structure to all functions of library

This commit is contained in:
arcan1s
2014-01-28 03:11:30 +04:00
parent 38eb392e32
commit d88f3b317f
44 changed files with 945 additions and 819 deletions

View File

@ -5,25 +5,13 @@
#include <stdio.h>
#include <time.h>
#include <mathmech/messages.h>
/**
* @fn message
*/
int message (const int log, const int mode, const char *text, FILE *output)
/**
* @brief function that prints messages to output
* @code
* message (log, mode, text, output);
* @endcode
*
* @param log equal to 1 if print to logfile
* @param mode number of message
* @param text additional text
* @param output output file (may be stdout)
*
* @return 1 - unknown mode
* @return 0 - exit without errors
*/
{
char out[4096];
@ -116,4 +104,4 @@ int message (const int log, const int mode, const char *text, FILE *output)
fputs (out, output);
return 0;
}
}