imageprocessing/debugFunctions.c
void logMessage(char* message)
{
  FILE* pOut = NULL;
  pOut = fopen(globalLogFile,"a");
  if (pOut == NULL)
     {
     printf("Error trying to open log file %s\n", globalLogFile);
     return;  /* not much we can do */
     }
  fprintf(pOut,"%s\n",message);
  fclose(pOut);
}
/* Write a message to a log file 
 * Opens and closes the log file each time
 * to avoid problems with crashes.
 * Log file name is global to this module.
 * @param   message    Message to write - adds a newline
 */
Write a message to a log file
Opens and closes the log file each time
to avoid problems with crashes.
Log file name is global to this module.
@param   message    Message to write - adds a newline
Write a message to a log file Opens and closes the log file each time to avoid problems with crashes . Log file name is global to this module . @param message Message to write - adds a newline
void logMessage(char* message)
{
  FILE* pOut = NULL;
  pOut = fopen(globalLogFile,"a");
  if (pOut == NULL)
     {
     printf("Error trying to open log file %s\n", globalLogFile);
     return;  
     }
  fprintf(pOut,"%s\n",message);
  fclose(pOut);
}
void logMessage ( char * message ) { FILE * pOut = NULL ; pOut = fopen ( globalLogFile , " " ) ; if ( pOut == NULL ) { printf ( " \n " , globalLogFile ) ; return ; } fprintf ( pOut , " \n " , message ) ; fclose ( pOut ) ; }
Write a message to a log file
 Opens and closes the log file each time
 to avoid problems with crashes.
Write a message to a log file Opens and closes the log file each time to avoid problems with crashes .
/* not much we can do */