Mercurial
comparison mrjunejune/main.c @ 96:70401cf61e97
[Seobeo] Added logging.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 02 Jan 2026 19:16:17 -0800 |
| parents | 655ea0b661fd |
| children | 65e5a5b89a4e |
comparison
equal
deleted
inserted
replaced
| 95:b51f8cce9170 | 96:70401cf61e97 |
|---|---|
| 26 size_t current_offset = 0; | 26 size_t current_offset = 0; |
| 27 char *cursor = template; | 27 char *cursor = template; |
| 28 | 28 |
| 29 int32 token_len = 2; | 29 int32 token_len = 2; |
| 30 | 30 |
| 31 while (true) | 31 while (1) |
| 32 { | 32 { |
| 33 char *start_tag = strstr(cursor, "{{"); | 33 char *start_tag = strstr(cursor, "{{"); |
| 34 if (!start_tag) break; | 34 if (!start_tag) break; |
| 35 | 35 |
| 36 char *end_tag = strstr(start_tag, "}}"); | 36 char *end_tag = strstr(start_tag, "}}"); |