00001 /* 00002 * check_func.h - describe functions for different checks. 00003 * This file is part of PetrSU KP library. 00004 * 00005 * Copyright (C) 2009 - Alexander A. Lomov. All rights reserved. 00006 * 00007 * PetrSU KP library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * PetrSU KP library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with <program name>; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, 00020 * Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef _UTIL_FUNC_H_ 00024 #define _UTIL_FUNC_H_ 00025 00026 #include <stdio.h> 00027 #include <string.h> 00028 #include "kp_error.h" 00029 #include "kp_bool.h" 00030 #include "../structures.h" 00031 #include "../properties.h" 00032 #include <sys/types.h> 00033 00034 00035 00036 /******************************************************************************/ 00037 /****************************** Functions list ********************************/ 00038 char* get_str_duplicate(const char *string); 00039 bool is_in_property_list(property_t *item, list_t *property_list); 00040 bool is_in_property_values_list(prop_val_t *item, list_t *property_list); 00041 ss_triple_t *concat_triplets(ss_triple_t *a, ss_triple_t *b); 00042 00043 #endif /* _UTIL_FUNC_H_ */