/* * OpenMRCP - Open Source Media Resource Control Protocol Stack * Copyright (C) 2007, Cepstral LLC * * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * Author(s): * Arsen Chaloyan * * Contributor(s): * */ #include "apt_string_table.h" #include "apt_text_stream.h" static apt_bool_t is_unique(apt_string_table_t table, size_t count, size_t item_index, size_t char_index, char value) { size_t i; for(i=0; i 2) { f2 = fopen(argv[2], "wb"); } else { f2 = stdout; } count = string_table_read(table,f1); string_table_key_generate(table,count); string_table_write(table, count,f2); fclose(f1); if(f2 != stdout) { fclose(f2); } return 0; }