ppdfviewer, basic, bits and string view

This commit is contained in:
2026-11-14 00:15:02 -03:00
parent c693541103
commit 04be717bc7
8 changed files with 193 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "stringv.h"
#include <stdio.h>
int main(void) {
StringView s1 = sv_from_cstr("Hola mundo con string view");
StringView s2 = sv_from_cstr("😊");
StringView last = sv_right(&s1, 4);
printf("El string view contiene: %s\n", s2.text);
printf("El length es: %zu\n", s2.lenght);
printf("last tiene:%.*s\n", (int)last.lenght, last.text);
return 0;
}