equal
deleted
inserted
replaced
1 #pragma once |
1 #pragma once |
2 |
2 |
3 #include <stdbool.h> |
3 #include <stdbool.h> |
4 |
4 |
5 typedef struct string255_ |
5 typedef union string255_ |
6 { |
6 { |
7 char s[256]; |
7 struct { |
|
8 char s[256]; |
|
9 }; |
|
10 struct { |
|
11 char len; |
|
12 char str[255]; |
|
13 }; |
8 } string255; |
14 } string255; |
9 typedef struct string192_ |
15 typedef struct string192_ |
10 { |
16 { |
11 char s[193]; |
17 char s[193]; |
12 } string192; |
18 } string192; |
51 |
57 |
52 int Length(string255 a); |
58 int Length(string255 a); |
53 string255 copy(string255 a, int s, int l); |
59 string255 copy(string255 a, int s, int l); |
54 string255 delete(string255 a, int s, int l); |
60 string255 delete(string255 a, int s, int l); |
55 |
61 |
|
62 #define STRCONSTDECL(a, b) const string255 a = {.len = sizeof(b), .str = b} |