Initial commit - http://sourceforge.net/p/fceumm/code/160/
This commit is contained in:
24
src/fir/toh.c
Normal file
24
src/fir/toh.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX 512
|
||||
|
||||
main()
|
||||
{
|
||||
char buf[256];
|
||||
int count=0;
|
||||
|
||||
while(fgets(buf,256,stdin)>0)
|
||||
{
|
||||
double p;
|
||||
|
||||
if(sscanf(buf,"%lf",&p)==1)
|
||||
{
|
||||
p*=65536*16;
|
||||
printf("%ld,\n",(long)p);
|
||||
count++;
|
||||
if(count==MAX) break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user