#include <string.h>
#include <termios.h>
#include <stdlib.h>
+#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <asm/types.h>
char str[100];
int i;
FILE * F;
- __s16 * x;
+ int16_t * x;
if (!bbuf){
printf("Error bufer empty\n");
printf("%s\n",strerror(errno));
return;
}
- x=(__s16 *)bbuf;
+ x=(int16_t *)bbuf;
for(i=0;i<(Len/2);i++){
fprintf(F,"%07d\n",*x);
x++;
char str[100];
int i;
FILE * F;
- __s16 * x;
+ int16_t * x;
sprintf(str,"%s.%03d",GName,GSt);
printf("%s\n",strerror(errno));
return;
}
- x=(__s16 *)bbuf;
+ x=(int16_t *)bbuf;
for(i=0;i<(Len/2);i++){
fprintf(F,"%07d\n",*x);
x++;
char str[100];
int i;
FILE * F;
- __s16 * x;
+ int16_t * x;
sprintf(str,"%s.dat",GName);
if(GSt==0)F=fopen(str,"w");
printf("%s\n",strerror(errno));
return;
}
- x=(__s16 *)bbuf;
+ x=(int16_t *)bbuf;
for(i=0;i<(Len/2);i++){
if(i==(Len/2)-1) fprintf(F,"%07d\n",*x);
else fprintf(F,"%07d ",*x);