aboutsummaryrefslogtreecommitdiff
path: root/challenge-209
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2023-04-07 18:39:52 +0100
committerPaulo Custodio <pauloscustodio@gmail.com>2023-04-07 18:39:52 +0100
commit08bd7c6a065b0fa11232ca9126f500b9655c6fb7 (patch)
tree4e10d458126664b443db60379766a7e1ee68b0ce /challenge-209
parent9af5ae318325bc085db10520c373749a392ccc3b (diff)
downloadperlweeklychallenge-club-08bd7c6a065b0fa11232ca9126f500b9655c6fb7.tar.gz
perlweeklychallenge-club-08bd7c6a065b0fa11232ca9126f500b9655c6fb7.tar.bz2
perlweeklychallenge-club-08bd7c6a065b0fa11232ca9126f500b9655c6fb7.zip
Add C solution
Diffstat (limited to 'challenge-209')
-rw-r--r--challenge-209/paulo-custodio/c/ch-1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/challenge-209/paulo-custodio/c/ch-1.c b/challenge-209/paulo-custodio/c/ch-1.c
index 6e75b6f9e4..5e48881066 100644
--- a/challenge-209/paulo-custodio/c/ch-1.c
+++ b/challenge-209/paulo-custodio/c/ch-1.c
@@ -61,10 +61,10 @@ int main(int argc, char* argv[]) {
}
UT_string* out;
- utstring_new(out);
-
+ utstring_new(out);
+
decode(out, argv[0]);
printf("%d\n", utstring_body(out)[utstring_len(out)-1] == 'a' ? 1 : 0);
-
- utstring_free(out);
+
+ utstring_free(out);
}