15 lines
295 B
C
15 lines
295 B
C
#ifndef STRING_VIEW_H
|
|
#define STRING_VIEW_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct StringView {
|
|
char *text;
|
|
size_t lenght;
|
|
} StringView;
|
|
|
|
StringView sv_from_cstr(const char *);
|
|
StringView sv_left(const StringView *sv, size_t l);
|
|
StringView sv_right(const StringView *sv, size_t l);
|
|
#endif
|