• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

My own rewrite of the BSD morse code recreational utility


Commit MetaInfo

Revision154b2b7e042756a20afd8b7a81a8d0e1bb49c3d6 (tree)
Zeit2021-08-30 02:43:52
AutorJoel Matthew Rees <joel.rees@gmai...>
CommiterJoel Matthew Rees

Log Message

decode works?

Ändern Zusammenfassung

Diff

--- a/bsdmorseplus.c
+++ b/bsdmorseplus.c
@@ -189,6 +189,7 @@ totextif(s)
189189 {
190190 int i;
191191
192+/*dbg* / printf( "entering totextif(): %s\n", s ); */
192193 for (i = 0; i < 10; i++)
193194 if (strcmp(digit[i], s) == 0) {
194195 return '0' + i;
@@ -339,11 +340,11 @@ main(argc, argv)
339340
340341 if (dflag) {
341342 if (*argvp) {
342- char outstr;
343+ char outch = 'x';
343344 do {
344345 /* decode(*argvp); */
345- outstr = totextif( argvp );
346- putchar( outstr );
346+ outch = totextif( *argvp );
347+ putchar( outch );
347348 } while (*++argvp);
348349 } else {
349350 char foo[10]; /* All morse chars shorter than this */