Add license info to headers

This commit is contained in:
Aoran Zeng
2023-09-05 20:56:24 +08:00
parent 29c7dc6e31
commit 615e9a6a7a
5 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
# ---------------------------------------------------------------
# File : Makefile
# License : GPLv3
# Authors : Aoran Zeng <ccmywish@qq.com>
# Created on : <2023-08-28>
# Last modified : <2023-09-05>
# ---------------------------------------------------------------
CFLAGS =
TARGET = chsrc

View File

@@ -1,5 +1,6 @@
/* --------------------------------------------------------------
* File : chsrc.c
* License : GPLv3
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28>
* Last modified : <2023-09-05>
@@ -7,6 +8,8 @@
* chsrc:
*
* Change Source —— 命令行换源工具
*
* 该软件为自由软件,采用 GPLv3 许可证,请查阅 LICENSE.txt 文件
* -------------------------------------------------------------*/
#include "chsrc.h"

View File

@@ -1,5 +1,6 @@
/* --------------------------------------------------------------
* File : chsrc.h
* License : GPLv3
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-29>
* Last modified : <2023-09-05>

View File

@@ -1,5 +1,6 @@
/* --------------------------------------------------------------
* File : test_xy.c
* License : MIT
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-30>
* Last modified : <2023-09-05>

7
xy.h
View File

@@ -1,14 +1,17 @@
/* --------------------------------------------------------------
* File : xy.h
* License : MIT
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28>
* Last modified : <2023-09-05>
*
* xy:
*
* y = f(x)
* Xiangyang (襄阳) or Xianyang (咸阳)
*
* Corss-Platform C utilities in Ruby flavor
*
* 该文件采用 MIT 许可证,可闭源使用,请查阅 LICENSE.txt 文件
* -------------------------------------------------------------*/
#ifndef XY_H
@@ -444,7 +447,7 @@ xy_str_strip (const char* str)
* 执行cmd后拿到cmd的执行结果 注意从外部free掉这段内存
* 注意:执行结果后面有回车换行
*/
char *
char *
xy_getcmd(const char * cmd)
{
const int BUFSIZE = 1024;