X-Git-Url: https://git.armaanb.net/?p=bin.git;a=blobdiff_plain;f=morse.c;h=3c5698e27d56179206e3d1512c4d2640047acbad;hp=e535e6f3f6302fee55712d7240acae4828b8c252;hb=HEAD;hpb=c95e95333f93130886fa49231679a02256cfdcef diff --git a/morse.c b/morse.c index e535e6f..3c5698e 100644 --- a/morse.c +++ b/morse.c @@ -1,6 +1,6 @@ -/* Convert ASCII to morse code. Reads from stdin if provided with no argument - or "-", otherwise reads from the first command line argument. Prints "?" if - character is not found. */ +/* Convert ASCII to morse code. Reads from stdin if provided with no argument + or "-", otherwise reads from the first command line argument. Prints "?" if + character is not found. */ #include #include @@ -41,6 +41,7 @@ convert(char *c) int main(int argc, char **argv) { + (void)argc; char c[2]; c[1] = '\0';