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:
6
main.c
6
main.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user