• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-c誰得cocoaqtpythonrubywindowsphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

My own rewrite of the BSD morse code recreational utility


Commit MetaInfo

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

Log Message

decode works?

Change Summary

Incremental Difference

--- 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 */