feat: add string type

This commit is contained in:
2023-06-25 15:20:38 +02:00
parent ce088f8ff5
commit 8f3ee199e5
13 changed files with 172 additions and 194 deletions
+3 -3
View File
@@ -4,8 +4,8 @@
#include "libcproject.h"
int main() {
char* string = "Hello, world!";
printf("%s\n", string);
printf("string_length = %ld\n", string_get_length(string));
string string_value = "Hello, world!";
printf("%s\n", string_value);
printf("string_length = %ld\n", string_get_length(string_value));
return EXIT_SUCCESS;
}