libfgen  0.1.15
Library for optimization using a genetic algorithm or particle swarm optimization
error.c
00001 /*
00002     error.c -- error handling.
00003 
00004     fgen -- Library for optimization using a genetic algorithm or particle swarm optimization.
00005     Copyright 2012, Harm Hanemaaijer
00006 
00007     This file is part of fgen.
00008 
00009     fgen is free software: you can redistribute it and/or modify it
00010     under the terms of the GNU Lesser General Public License as published
00011     by the Free Software Foundation, either version 3 of the License, or
00012     (at your option) any later version.
00013 
00014     fgen is distributed in the hope that it will be useful, but WITHOUT
00015     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00016     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00017     License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public
00020     License along with fgen.  If not, see <http://www.gnu.org/licenses/>.
00021 
00022 */
00023 
00024 #include "stdlib.h"
00025 #include "stdio.h"
00026 #include "error.h"
00027 
00028 
00029 void gen_error(const char *s) {
00030         printf("%s\n", s);
00031         exit(-1);
00032 }
00033 
 All Data Structures Functions Variables