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