stringstruct:用于C编程的字符串库

时间:2021-05-17 05:57:58
【文件属性】:
文件名称:stringstruct:用于C编程的字符串库
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-17 05:57:58
C hstring StringStruct 0.0.7 用于c编程的ansi字符串和宽字符串结构。 字符串结构在堆栈中创建。 因此,您不需要使用malloc或*函数。 字符串结构将自动释放。 您不需要调用strlen函数,因为字符串struct的len成员保留了字符串的长度。 您可以使用此标头保存包含NULL字符的字符串。 例子 int i; String s1, s2, s3; //declaring STRCPY(&s1,"Hey"); //copying or assigning char array printf("s1 = %s\n",&s1); //prints "Hey" ASSIGN(&s1,"Hello"); //same as STRCPY printf("s1 = %s\n",&s1); //prints "He
【文件预览】:
stringstruct-master
----hstring.h(17KB)
----LICENSE(34KB)
----README.md(12KB)
----oldreleases()
--------hstring002.h(2KB)
--------readme.md(1B)
--------hstring004.h(7KB)
--------hstring001.h(733B)
--------hstring005.h(12KB)
--------hstring006.h(17KB)
--------hstring003.h(4KB)

网友评论