3 * This file is part of AnonAccess, an access system which can be used
4 * to open door or doing other things with an anonymity featured
6 * Copyright (C) 2006, 2007, 2008, 2009 Daniel Otte (daniel.otte@rub.de)
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef DBZ_STRINGS_H_
24 #define DBZ_STRINGS_H_
26 /** \file dbz_strings.h
28 * \email daniel.otte@rub.de
29 * \license GPLv3 or later
30 * \brief functions for handling of double-zero-terminated strings
36 /** \fn uint8_t dbz_strcount(const char* str)
37 * \brief count stings in dbz-terminated string
39 * Count the single zero terminated strings in a
40 * double terminated string
41 * \param str pointer to the double-zero-terminated string
43 uint8_t dbz_strcount(const char* str);
45 /** \fn void dbz_splitup(char* dbzstr, char** strings)
46 * \brief split up a dbz-terminated string
48 * Fills an array with pointers to the single terminated string
49 * in a double-zero-terminated string
50 * \param dbzstr pointer to the double-zero-terminated string
51 * \param strings pointer to the array of strings (char pointers)
53 void dbz_splitup(char* dbzstr, char** strings);
55 #endif /*DBZ_STRINGS_H_*/