Line 56... |
Line 56... |
#include "psf.h"
|
#include "psf.h"
|
#include "sample.h"
|
#include "sample.h"
|
#include "xml.h"
|
#include "xml.h"
|
|
|
time_t thetime, thetime2;
|
time_t thetime, thetime2;
|
void write_error(char *msg1, char *msg2);
|
void write_error(const char *msg1, const char *msg2);
|
|
|
/********************************** makeit ***********************************/
|
/********************************** makeit ***********************************/
|
/*
|
/*
|
*/
|
*/
|
void makeit(void)
|
void makeit(void)
|
Line 248... |
Line 248... |
|
|
|
|
|
|
|
|
/****** write_error ********************************************************
|
/****** write_error ********************************************************
|
PROTO void write_error(char *msg1, char *msg2)
|
PROTO void write_error(const char *msg1, const char *msg2)
|
PURPOSE Manage files in case of a catched error
|
PURPOSE Manage files in case of a catched error
|
INPUT a character string,
|
INPUT a character string,
|
another character string
|
another character string
|
OUTPUT RETURN_OK if everything went fine, RETURN_ERROR otherwise.
|
OUTPUT RETURN_OK if everything went fine, RETURN_ERROR otherwise.
|
NOTES -.
|
NOTES -.
|
AUTHOR E. Bertin (IAP)
|
AUTHOR E. Bertin (IAP)
|
VERSION 23/02/2007
|
VERSION 23/02/2007
|
***/
|
***/
|
void write_error(char *msg1, char *msg2)
|
void write_error(const char *msg1, const char *msg2)
|
{
|
{
|
char error[MAXCHAR];
|
char error[MAXCHAR];
|
|
|
sprintf(error, "%s%s", msg1,msg2);
|
sprintf(error, "%s%s", msg1,msg2);
|
if (prefs.xml_flag)
|
if (prefs.xml_flag)
|