Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!newsgate1.web.ad.jp!news.fukuoka.infoweb.or.jp!newshost.ryukyu.ad.jp!sour!merope!void
From: void@merope.opus.or.jp (Kusakabe Youichi)
Subject: Re: =?ISO-2022-JP?B?GyRCJVMlQyVIJE5JPTwoGyhC?=
Message-ID: <1997Apr29.180012.9297@merope.opus.or.jp>
Organization: Macintosh User Group PLEIADES in opus
X-Newsreader: TIN [version 1.2 PL0]
References: <5jqlr9$o4i@geisya.geisya.or.jp> <5k51r4$a5i$1@news.raidway.or.jp>
Date: Tue, 29 Apr 1997 18:00:12 GMT
Lines: 35
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:4034
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=4034&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

Masahiro Kondou (mako@mail.raidway.or.jp) wrote:
: $B$9$0;W$$IU$$$?$N$G$"$^$jAa$/$J$$$+$b!D(B (^^;
: tbl$B$K$O!"%9%Z!<%9$H(B*$B$H(B\0$B$,$O$$$C$F$$$^$9!#(B

: void simled(int flag)
: {

: static char tbl[]= " *" ;

:         int sb;

:         printf("\r");
:         
:         for(sb=7;sb>=0;sb--){
:                 putchar( tbl[(flag>>sb) & 0x0001] ) ;
:         }
: }
$B!VB.$/!W$C$F$N$OFq$7$$$G$9$M(B
$B!VC;$/!W$9$k$@$1$@$C$?$i!"(B

void simled(int flags)
{
int b;

putchar('\r');
for (b = 8; b--; )
putchar(" *"[(flags >> b) & 1]);
}

$B$N$[$&$,C;$$$G$7$g$&$1$I!#(B

  $B%X(B_$B%X(B   ------------------------
$B%_!&!&(B $B%_(B  void@merope.opus.or.jp
 (  $B!k(B )$B!A(B            $BF|2<ItM[0l(B
----------------------------------
