mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 03:04:03 +08:00
Add license info to headers
This commit is contained in:
parent
29c7dc6e31
commit
615e9a6a7a
8
Makefile
8
Makefile
@ -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 =
|
CFLAGS =
|
||||||
|
|
||||||
TARGET = chsrc
|
TARGET = chsrc
|
||||||
|
3
chsrc.c
3
chsrc.c
@ -1,5 +1,6 @@
|
|||||||
/* --------------------------------------------------------------
|
/* --------------------------------------------------------------
|
||||||
* File : chsrc.c
|
* File : chsrc.c
|
||||||
|
* License : GPLv3
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-28>
|
* Created on : <2023-08-28>
|
||||||
* Last modified : <2023-09-05>
|
* Last modified : <2023-09-05>
|
||||||
@ -7,6 +8,8 @@
|
|||||||
* chsrc:
|
* chsrc:
|
||||||
*
|
*
|
||||||
* Change Source —— 命令行换源工具
|
* Change Source —— 命令行换源工具
|
||||||
|
*
|
||||||
|
* 该软件为自由软件,采用 GPLv3 许可证,请查阅 LICENSE.txt 文件
|
||||||
* -------------------------------------------------------------*/
|
* -------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chsrc.h"
|
#include "chsrc.h"
|
||||||
|
1
chsrc.h
1
chsrc.h
@ -1,5 +1,6 @@
|
|||||||
/* --------------------------------------------------------------
|
/* --------------------------------------------------------------
|
||||||
* File : chsrc.h
|
* File : chsrc.h
|
||||||
|
* License : GPLv3
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-29>
|
* Created on : <2023-08-29>
|
||||||
* Last modified : <2023-09-05>
|
* Last modified : <2023-09-05>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* --------------------------------------------------------------
|
/* --------------------------------------------------------------
|
||||||
* File : test_xy.c
|
* File : test_xy.c
|
||||||
|
* License : MIT
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-30>
|
* Created on : <2023-08-30>
|
||||||
* Last modified : <2023-09-05>
|
* Last modified : <2023-09-05>
|
||||||
|
7
xy.h
7
xy.h
@ -1,14 +1,17 @@
|
|||||||
/* --------------------------------------------------------------
|
/* --------------------------------------------------------------
|
||||||
* File : xy.h
|
* File : xy.h
|
||||||
|
* License : MIT
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-28>
|
* Created on : <2023-08-28>
|
||||||
* Last modified : <2023-09-05>
|
* Last modified : <2023-09-05>
|
||||||
*
|
*
|
||||||
* xy:
|
* xy:
|
||||||
*
|
*
|
||||||
* y = f(x)
|
* Xiangyang (襄阳) or Xianyang (咸阳)
|
||||||
*
|
*
|
||||||
* Corss-Platform C utilities in Ruby flavor
|
* Corss-Platform C utilities in Ruby flavor
|
||||||
|
*
|
||||||
|
* 该文件采用 MIT 许可证,可闭源使用,请查阅 LICENSE.txt 文件
|
||||||
* -------------------------------------------------------------*/
|
* -------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef XY_H
|
#ifndef XY_H
|
||||||
@ -444,7 +447,7 @@ xy_str_strip (const char* str)
|
|||||||
* 执行cmd后拿到cmd的执行结果 注意从外部free掉这段内存
|
* 执行cmd后拿到cmd的执行结果 注意从外部free掉这段内存
|
||||||
* 注意:执行结果后面有回车换行
|
* 注意:执行结果后面有回车换行
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
xy_getcmd(const char * cmd)
|
xy_getcmd(const char * cmd)
|
||||||
{
|
{
|
||||||
const int BUFSIZE = 1024;
|
const int BUFSIZE = 1024;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user