]> git.cryptolib.org Git - arm-crypto-lib.git/blob - test_src/dbz_strings.h
switching to dedicated endian switching function
[arm-crypto-lib.git] / test_src / dbz_strings.h
1 /* dbz_strings.h */
2 /*
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
5  *    account managment.
6  *   Copyright (C) 2006, 2007, 2008, 2009  Daniel Otte (daniel.otte@rub.de)
7  *
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.
12  *
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.
17  *
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/>.
20  */
21
22
23 #ifndef DBZ_STRINGS_H_
24 #define DBZ_STRINGS_H_
25
26 /** \file dbz_strings.h
27  * \author  Daniel Otte
28  * \email   daniel.otte@rub.de
29  * \license GPLv3 or later
30  * \brief functions for handling of double-zero-terminated strings
31  * 
32  */
33
34 #include <stdint.h>
35
36 /** \fn uint8_t dbz_strcount(const char* str)
37  * \brief count stings in dbz-terminated string
38  * 
39  * Count the single zero terminated strings in a 
40  * double terminated string
41  * \param str pointer to the double-zero-terminated string
42  */
43 uint8_t dbz_strcount(const char* str);
44
45 /** \fn void dbz_splitup(char* dbzstr, char** strings)
46  * \brief split up a dbz-terminated string
47  * 
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)
52  */
53 void dbz_splitup(const char* dbzstr, const char** strings);
54
55 #endif /*DBZ_STRINGS_H_*/