chsrc/test_helper.c

30 lines
834 B
C
Raw Normal View History

2023-08-30 09:51:48 +08:00
/* --------------------------------------------------------------
* File : test_helper.c
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-30>
* Last modified : <2023-08-30>
*
* test_helper:
*
* helper.h
* -------------------------------------------------------------*/
#include <stdio.h>
#include "helper.h"
int
main (int argc, char const *argv[])
{
xy_useutf8();
2023-08-30 19:44:29 +08:00
puts(xy_2strjoin("Xi", "'an"));
puts(xy_strjoin (2, "Xi", "'an"));
puts(xy_strjoin(3, "中文输出", " XiangYang", " shan shui"));
puts(xy_strjoin(4, "中文输出2", " XianYan", " hao", " feng jing"));
2023-08-30 09:51:48 +08:00
2023-08-30 10:59:27 +08:00
xy_success("成功:输出成功内容");
xy_info("信息: 输出信息内容");
xy_warn("警告:输出警告内容");
xy_error("错误:输出错误内容");
2023-08-30 09:51:48 +08:00
return 0;
}