From fdabbf47de52116fc7d91f5e94c7ecde6ed4471b Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 28 Mar 2016 09:06:50 +0000 Subject: [PATCH] Comments added. FossilOrigin-Name: fe15f844ca00dfc60b0dd567ae967b6380d53e1795fba136416aa83fc2b45443 --- src/cw/mavl_create_conststr.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/cw/mavl_create_conststr.c b/src/cw/mavl_create_conststr.c index 987465aa..7fcba3a4 100644 --- a/src/cw/mavl_create_conststr.c +++ b/src/cw/mavl_create_conststr.c @@ -1,3 +1,26 @@ +/* + This file is part of actube. + + actube is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + libcapwap is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Foobar. If not, see . + +*/ + +/** + * @file + * @brief Implementation of mavl_create_conststr + */ + #include "mavl.h" @@ -6,6 +29,14 @@ static int cmp(const void *v1,const void*v2) return strcmp( (char*)v1,(char*)v2); } +/** + * Create a mavl object which holds pointers to strings. + * These strings have to be constant. So there is no + * free method called, when the mavl object is destroyed + * @return The created mavl object or NULL if an error + * has occured. + */ + mavl_conststr_t mavl_create_conststr() { return mavl_create(cmp,NULL);