1 // SPDX-License-Identifier: GPL-2.0
3 // misc.h - a header file for miscellaneous tools.
5 // Copyright (c) 2018 Takashi Sakamoto <o-takashi@sakamocchi.jp>
7 // Licensed under the terms of the GNU General Public License, version 2.
9 #ifndef __ALSA_UTILS_AXFER_MISC__H_
10 #define __ALSA_UTILS_AXFER_MISC__H_
14 #define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
16 char *arg_duplicate_string(const char *str, int *err);
17 long arg_parse_decimal_num(const char *str, int *err);