aboutsummaryrefslogtreecommitdiff
path: root/g2x.c
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-11-18 02:28:26 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-11-18 02:28:26 +0600
commit082013998723b3f7d4051d48a8da828494f360df (patch)
treeb5265f68c14d5b275802aa0ffa17e778672e401e /g2x.c
parentb310fce41b551a12eb59e7348878f6069b8351f1 (diff)
Fixing creation of duplicates
Diffstat (limited to 'g2x.c')
-rw-r--r--g2x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g2x.c b/g2x.c
index f6e4f33..c171c13 100644
--- a/g2x.c
+++ b/g2x.c
@@ -73,6 +73,8 @@ int main(void)
for (pos = 3; buf[pos] != ' ';)
putchar(buf[pos++]);
// read entire URL, then check for "gmi" in URL.
+ // TODO use strncmp instead of inline char match.
+ // btw idk how to really use strncmp here at all.
if (
buf[pos-3] == 'g' &&
buf[pos-2] == 'm' &&
@@ -85,6 +87,7 @@ int main(void)
}
else if (!strncmp(buf,"```",3))
{// Match ``` codeblocks, ignore the block-name
+ // TODO don't ignore the block-name
fgets(buf,BUFSIZE,stdin); html("<pre><code>");
while (strncmp(buf,"```",3))
{