Changeset 5892
- Timestamp:
- Jan 4, 2006, 12:59:31 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 edited
-
Makefile.am (modified) (2 diffs)
-
psTableParse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/Makefile.am
r5512 r5892 2 2 3 3 bin_SCRIPTS = pslib-config psParseErrorCodes 4 5 bin_PROGRAMS = psTableParse 4 6 5 7 pkgconfigdir = $(libdir)/pkgconfig … … 14 16 psParsePrecessionTable \ 15 17 autogen.sh 18 19 psTableParse_SOURCES = psTableParse.c 16 20 17 21 if DOXYGEN -
trunk/psLib/psTableParse.c
r5824 r5892 7 7 * @author Dave Robbins, MHPCC 8 8 * 9 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 200 5-12-21 06:15:58$9 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-01-04 22:59:31 $ 11 11 * 12 12 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii 13 13 */ 14 14 15 #include "pslib.h" 15 //#include "pslib.h" 16 #include <stdio.h> 17 #include <stdlib.h> 18 #include <string.h> 19 #include <math.h> 16 20 17 21 int main(int argc, char *argv[]) … … 31 35 input = fopen(argv[1], "r"); 32 36 output = fopen(argv[2], "w"); 33 char data;37 // char data; 34 38 char data2[200]; 35 39 int i; 36 while ( fscanf(input, "%188c", &data2) != EOF) {40 while ( fscanf(input, "%188c", data2) != EOF) { 37 41 for (i = 7; i <= 14; i++) { 38 42 fprintf(output, "%c", data2[i]);
Note:
See TracChangeset
for help on using the changeset viewer.
