• 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

Revisionfb1eee4428de433b29e5fe86767f16750bb3e8f0 (tree)
Time2021-08-29 19:46:57
AuthorJoel Matthew Rees <joel.rees@gmai...>
CommiterJoel Matthew Rees

Log Message

show()

Change Summary

Incremental Difference

--- a/bsdmorseplus.c
+++ b/bsdmorseplus.c
@@ -125,11 +125,25 @@ const struct punc {
125125 int main(int, char *[]);
126126 void morse(int);
127127 void decode(const char *);
128-void show(const char *);
128+/* void show(const char *); */
129129
130130 static int sflag;
131131 static int dflag;
132132
133+
134+
135+void
136+show(s)
137+ const char *s;
138+{
139+ if (sflag)
140+ printf(" %s", s);
141+ else for (; *s; ++s)
142+ printf(" %s", *s == '.' ? "dit" : "daw");
143+ printf("\n");
144+}
145+
146+
133147 int
134148 main(argc, argv)
135149 int argc;
@@ -266,14 +280,3 @@ morse(c)
266280 }
267281 }
268282
269-void
270-show(s)
271- const char *s;
272-{
273- if (sflag)
274- printf(" %s", s);
275- else for (; *s; ++s)
276- printf(" %s", *s == '.' ? "dit" : "daw");
277- printf("\n");
278-}
279-