| 1 |
/* |
| 2 |
* This file is part of libbdplus |
| 3 |
* Copyright (C) 2008-2010 Accident |
| 4 |
* Copyright (C) 2013 VideoLAN |
| 5 |
* |
| 6 |
* This library is free software; you can redistribute it and/or |
| 7 |
* modify it under the terms of the GNU Lesser General Public |
| 8 |
* License as published by the Free Software Foundation; either |
| 9 |
* version 2.1 of the License, or (at your option) any later version. |
| 10 |
* |
| 11 |
* This library is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
* Lesser General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU Lesser General Public |
| 17 |
* License along with this library. If not, see |
| 18 |
* <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef STRUTL_H_ |
| 22 |
#define STRUTL_H_ |
| 23 |
|
| 24 |
#include "attributes.h" |
| 25 |
|
| 26 |
#include <stdint.h> |
| 27 |
|
| 28 |
BD_PRIVATE char * str_dup(const char *str) BD_ATTR_MALLOC; |
| 29 |
BD_PRIVATE char * str_printf(const char *fmt, ...) BD_ATTR_FORMAT_PRINTF(1,2) BD_ATTR_MALLOC; |
| 30 |
|
| 31 |
BD_PRIVATE const char * str_skip_white (const char *str); |
| 32 |
BD_PRIVATE const char * str_next_line (const char *str); |
| 33 |
|
| 34 |
BD_PRIVATE char * str_print_hex(char *out, const uint8_t *str, int count); |
| 35 |
|
| 36 |
#endif // STRUTL_H_ |