1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#include <stdio.h> #include <stdlib.h> #include <stdint.h> int main(int argc,char *argv[]) { int16_t lr[2]; int i; int x; int y; for (i=0;i<300;++i) { for (x=-32767;x<=32767;x+=7) { if ((x>-10000) && (x<10000)) y=10000; else y=-10000; lr[0]=y; lr[1]=x; fwrite(lr,sizeof(lr),1,stdout); } } return 0; }