diff options
| author | Paulo Custodio <pauloscustodio@gmail.com> | 2023-04-07 18:39:52 +0100 |
|---|---|---|
| committer | Paulo Custodio <pauloscustodio@gmail.com> | 2023-04-07 18:39:52 +0100 |
| commit | 08bd7c6a065b0fa11232ca9126f500b9655c6fb7 (patch) | |
| tree | 4e10d458126664b443db60379766a7e1ee68b0ce /challenge-209 | |
| parent | 9af5ae318325bc085db10520c373749a392ccc3b (diff) | |
| download | perlweeklychallenge-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.c | 8 |
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); } |
