/* * * Copyright (c) 2012-2021 Shenshu Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __STRFUNC_H__ #define __STRFUNC_H__ #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* __cplusplus */ #define STRFMT_ADDR32 "%#010lX" #define STRFMT_ADDR32_2 "0x%08lX" extern int str2number(const char *str, unsigned long *number); #ifdef __cplusplus #if __cplusplus } #endif #endif /* __cplusplus */ #endif /* __STRFUNC_H__ */