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