1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

feat: add string type

This commit is contained in:
2023-06-25 15:01:25 +02:00
parent ce088f8ff5
commit 8f3ee199e5
13 changed files with 172 additions and 194 deletions

6
main.c
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;
}