This is fdata.c in view mode; [Download] [Up]
/* readdata.c Provides test data 20x20 point RF profile in fdata[]. */ float fdata[]= { -1, -3, 3, 5, 4, 6, 2, 2, 3, 3, 0, -7, 1, 14, 1, 0, 5,-15, 5, 1, -2, 2, -8, -1, -1, 2, -3, 4, -3, -4, 0, -1, 2, -6, -4, 2, 5, -5, -7, -7, -1, 5,-10,-12, 6, -1, 2, 5, -4, 6, 2, 1, -1, -6, 7,-11, 1, -3, -1, -2, 1, 2, -4, -5,-13, 6, -3, 3, 0, 5, 5, 2, 3, -4, -4, -9, -7, -4, 2, -1, 4, -5, -2, 5, 1, -4, 15, 10, 10, 19, 10, 9, 9, -2, 9, -1, -4, 3, -1, -2, -1, -5, -3,-18, -8, -2, -2, 10, 0, -5, 12, 15, 8, 0, -9, -1, 5, -5, 2, 1, -8, 0, 8, -5, -7, 0, -8, 12, 20,-20, -6, 17, 4, -6, -6, -5, 7, 5, -3, 1, 3, 7, -3,-14,-18,-19, -9, 14, 40, 62, 52, 27, 6, -6, -4, 0, -5, -2,-10, -5, 10, 0, -2,-14,-20,-30,-18, 15, 65,105,100, 22, 6, -7,-14,-13, -9, -6, 0, -4, -2, 9,-12,-20,-40,-55,-20, 12, 76,120, 91, 64, 11, -8, -5, -7, -6, -2, 1,-12, 8, -1, -8,-48,-88,-62,-17, 25,100,106,116, 74, 4, 2,-11, -5, -5, -5, 2, -7, -2, 5, 3,-29,-46,-39,-13, 34, 77, 82, 93, 32, 18,-14, 2, 2,-13, -5, -2, 5, 1, -7, -3,-15,-33,-26,-23, 12, 74, 70, 70, 32, 7, 5, 0, -8, -3, 3, 2, 3, 4, -4,-12, 1,-30,-20,-12, -1, 31, 40, 39, 32, 7, -3, -1, -2, 1, -2, 0, -3, 5, 6, -7,-15,-17, -7, -9, -2, 5, 21, 14, -6, 14, 3, -6, -1, 4, 0, 3, 6, 1, 1, -5, -9,-12, -8,-20, -4, -3, -3, 8, 6, -5, 0, -5, 6, 0, 21, 1, 2, 2, 6, 5,-12, -5, -3,-10, 1, 5, 6,-10, -5, 7, 1, -1, 2, 9, 8, 2, -2, -2, 1, -4, -7, 1, 0, -5, 2, -1, -7, 10, 0, -5, 0,-12, 6, 1, -1, 1, 3, 5, -2, -6, 2, -1, -8, 0, 8, 0, -8, -2, 3, 0, -4, 4, 5, -5, 6, 5, 0, -1, -1, 8,-10, 0, -6, 4, -2, 10, 2, -3, 1, -2, 5, 2, -2, 7, -1, 5, 4, 0 }; /* ==================================================================== int readdata(void) { int i; FILE *fp; fp = fopen(filename1, "r"); if(fp == NULL) { fp= fopen(filename2, "r"); if(fp == NULL) { fprintf(stderr,"Can't open data file %s\n", filename2); return(1); } } for(i=0; i<400; i++) { fscanf(fp, "%f", &fdata[i]); } fclose(fp); return(0); } ===================================================================== */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.