00001 /* ========================================================================= */ 00002 /* EGlib "Efficient General Library" provides some basic structures and 00003 * algorithms commons in many optimization algorithms. 00004 * 00005 * Copyright (C) 2005 Daniel Espinoza and Marcos Goycoolea. 00006 * 00007 * This library is free software; you can redistribute it and/or modify it 00008 * under the terms of the GNU Lesser General Public License as published by the 00009 * Free Software Foundation; either version 2.1 of the License, or (at your 00010 * option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00015 * License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with this library; if not, write to the Free Software Foundation, 00019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 * */ 00021 /* ========================================================================= */ 00022 #include "eg_macros.h" 00023 /** @file 00024 * @brief implementation of some macros. 00025 * 00026 * @version 0.9.2 00027 * @par History: 00028 * -2006-09-28 00029 * - First implementation 00030 * @ingroup EGmacros */ 00031 /** @addtogroup EGmacros */ 00032 /** @{ */ 00033 /* ========================================================================= */ 00034 /** @brief Display information about the library and the running process */ 00035 void EGlib_info(void) __attribute__ ((constructor)); 00036 void EGlib_info(void) 00037 { 00038 char buff[1024]; 00039 fprintf(stderr,"using EGlib (build %s-%s)\n",__DATE__,__TIME__); 00040 gethostname(buff,(size_t)1024); 00041 fprintf(stderr,"Host: %s, Current process id: %d\n",buff,(int)getpid()); 00042 } 00043 /** @} */ 00044 /* end of eg_macros.c */