error_management.c File Reference

#include <stdio.h>
#include "error_management.h"

Go to the source code of this file.

Functions

void gestion_erreurs_set (int line, char *_file, char *_msg)
void gestion_erreurs_set1 (int line, char *_file, char *_msg, void *_arg1)


Function Documentation

void gestion_erreurs_set ( int  line,
char *  _file,
char *  _msg 
)

Definition at line 36 of file DATA_PRINT/error_management.c.

00037 {
00038      char _temp[1024];
00039 
00040      // Print the line, the file where the error come from
00041      // Also print the message
00042      sprintf(_temp, "Error !\nFile: %s\nLine: %i\n%s", _file, line, _msg);
00043      printf(_temp);
00044      // press enter...
00045      system("PAUSE");
00046      // Exit the program
00047      exit(0);
00048 }

void gestion_erreurs_set1 ( int  line,
char *  _file,
char *  _msg,
void *  _arg1 
)

Definition at line 51 of file DATA_PRINT/error_management.c.

References gestion_erreurs_set().

00052 {
00053      char _temp[1024];
00054 
00055      sprintf(_temp, _msg, _arg1);
00056      gestion_erreurs_set(line, _file, _temp);
00057 }


Generated on Fri Feb 19 02:23:19 2010 for AVR32 UC3 - EVK1104 DSPLib Demo Documentation by  doxygen 1.5.5