Skip to content

Instantly share code, notes, and snippets.

@fosawa
Created July 27, 2018 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fosawa/6a83da93f745fc57ce3106d187393b16 to your computer and use it in GitHub Desktop.
Save fosawa/6a83da93f745fc57ce3106d187393b16 to your computer and use it in GitHub Desktop.
C言語のサンプル
unsigned char karaoke[]="今\0宵\0も\0ど\0こ\0か\0ら\0現\0れ\0る \0"
・・・略・・・
while (kbhit()==0)
{
int status;
leng2=varread(0);
if ((karaoke[pt]!='*') && (leng1 != leng2))
{
printf ("%s",&karaoke[pt]);
pt+=strlen(&karaoke[pt])+1;
}
leng1=leng2;
status = getstatus();
if ((status & 1) != 0) break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment