| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /******************************************************************************* | ||
| 2 | |||
| 3 | License: | ||
| 4 | This software and/or related materials was developed at the National Institute | ||
| 5 | of Standards and Technology (NIST) by employees of the Federal Government | ||
| 6 | in the course of their official duties. Pursuant to title 17 Section 105 | ||
| 7 | of the United States Code, this software is not subject to copyright | ||
| 8 | protection and is in the public domain. | ||
| 9 | |||
| 10 | This software and/or related materials have been determined to be not subject | ||
| 11 | to the EAR (see Part 734.3 of the EAR for exact details) because it is | ||
| 12 | a publicly available technology and software, and is freely distributed | ||
| 13 | to any interested party with no licensing requirements. Therefore, it is | ||
| 14 | permissible to distribute this software as a free download from the internet. | ||
| 15 | |||
| 16 | Disclaimer: | ||
| 17 | This software and/or related materials was developed to promote biometric | ||
| 18 | standards and biometric technology testing for the Federal Government | ||
| 19 | in accordance with the USA PATRIOT Act and the Enhanced Border Security | ||
| 20 | and Visa Entry Reform Act. Specific hardware and software products identified | ||
| 21 | in this software were used in order to perform the software development. | ||
| 22 | In no case does such identification imply recommendation or endorsement | ||
| 23 | by the National Institute of Standards and Technology, nor does it imply that | ||
| 24 | the products and equipment identified are necessarily the best available | ||
| 25 | for the purpose. | ||
| 26 | |||
| 27 | This software and/or related materials are provided "AS-IS" without warranty | ||
| 28 | of any kind including NO WARRANTY OF PERFORMANCE, MERCHANTABILITY, | ||
| 29 | NO WARRANTY OF NON-INFRINGEMENT OF ANY 3RD PARTY INTELLECTUAL PROPERTY | ||
| 30 | or FITNESS FOR A PARTICULAR PURPOSE or for any purpose whatsoever, for the | ||
| 31 | licensed product, however used. In no event shall NIST be liable for any | ||
| 32 | damages and/or costs, including but not limited to incidental or consequential | ||
| 33 | damages of any kind, including economic damage or injury to property and lost | ||
| 34 | profits, regardless of whether NIST shall be advised, have reason to know, | ||
| 35 | or in fact shall know of the possibility. | ||
| 36 | |||
| 37 | By using this software, you agree to bear all risk relating to quality, | ||
| 38 | use and performance of the software and/or related materials. You agree | ||
| 39 | to hold the Government harmless from any claim arising from your use | ||
| 40 | of the software. | ||
| 41 | |||
| 42 | *******************************************************************************/ | ||
| 43 | |||
| 44 | |||
| 45 | /*********************************************************************** | ||
| 46 | LIBRARY: LFS - NIST Latent Fingerprint System | ||
| 47 | |||
| 48 | FILE: LOG.C | ||
| 49 | AUTHOR: Michael D. Garris | ||
| 50 | DATE: 08/02/1999 | ||
| 51 | |||
| 52 | Contains routines responsible for dynamically updating a log file | ||
| 53 | during the execution of the NIST Latent Fingerprint System (LFS). | ||
| 54 | |||
| 55 | *********************************************************************** | ||
| 56 | ROUTINES: | ||
| 57 | open_logfile() | ||
| 58 | print2log() | ||
| 59 | close_logfile() | ||
| 60 | ***********************************************************************/ | ||
| 61 | |||
| 62 | #include <log.h> | ||
| 63 | |||
| 64 | /* If logging is on, declare global file pointer and supporting */ | ||
| 65 | /* global variable for logging intermediate results. */ | ||
| 66 | |||
| 67 | /***************************************************************************/ | ||
| 68 | /***************************************************************************/ | ||
| 69 | 48 | int open_logfile(void) | |
| 70 | { | ||
| 71 | #ifdef LOG_REPORT | ||
| 72 | fprintf(stderr, "ERROR : open_logfile : fopen : %s\n", LOG_FILE); | ||
| 73 | return(-1); | ||
| 74 | } | ||
| 75 | #endif | ||
| 76 | |||
| 77 | 48 | return(0); | |
| 78 | } | ||
| 79 | |||
| 80 | /***************************************************************************/ | ||
| 81 | /***************************************************************************/ | ||
| 82 | 3171241 | void print2log(char *fmt, ...) | |
| 83 | { | ||
| 84 | #ifdef LOG_REPORT | ||
| 85 | va_list ap; | ||
| 86 | |||
| 87 | va_start(ap, fmt); | ||
| 88 | va_end(ap); | ||
| 89 | #endif | ||
| 90 | 3171241 | } | |
| 91 | |||
| 92 | /***************************************************************************/ | ||
| 93 | /***************************************************************************/ | ||
| 94 | 48 | int close_logfile(void) | |
| 95 | { | ||
| 96 | #ifdef LOG_REPORT | ||
| 97 | fprintf(stderr, "ERROR : close_logfile : fclose : %s\n", LOG_FILE); | ||
| 98 | return(-1); | ||
| 99 | } | ||
| 100 | #endif | ||
| 101 | |||
| 102 | 48 | return(0); | |
| 103 | } | ||
| 104 | |||
| 105 |