Changeset 4944 for trunk/psLib/src/mathtypes
- Timestamp:
- Sep 2, 2005, 11:32:06 AM (21 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 4 edited
-
psImage.c (modified) (3 diffs)
-
psImage.h (modified) (2 diffs)
-
psVector.c (modified) (3 diffs)
-
psVector.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r4920 r4944 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 79$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 8-31 02:07:11$11 * @version $Revision: 1.80 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-02 21:32:06 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 473 473 } 474 474 475 bool p_psImagePrint (FILE *f, psImage *a, char *name) 476 { 477 475 bool p_psImagePrint (int fd, psImage *a, char *name) 476 { 477 FILE *f; 478 f = fdopen(fd, "a+"); 478 479 fprintf (f, "matrix: %s\n", name); 479 480 … … 485 486 } 486 487 fprintf (f, "\n"); 488 fclose(f); 487 489 return (true); 488 490 } -
trunk/psLib/src/mathtypes/psImage.h
r4920 r4944 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.6 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 8-31 02:07:11$13 * @version $Revision: 1.66 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-02 21:32:06 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 239 239 */ 240 240 bool p_psImagePrint( 241 FILE *f, ///< Destination stream241 int fd, ///< Destination file descriptor 242 242 psImage *a, ///< image to print 243 243 char *name ///< name of the image (for title) -
trunk/psLib/src/mathtypes/psVector.c
r4898 r4944 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.5 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 8-30 01:14:13$11 * @version $Revision: 1.51 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-02 21:32:06 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 599 599 } 600 600 601 bool p_psVectorPrint ( FILE *f,601 bool p_psVectorPrint (int fd, 602 602 psVector *a, 603 603 char *name) 604 604 { 605 605 FILE *f; 606 f = fdopen(fd, "a+"); 606 607 fprintf (f, "vector: %s\n", name); 607 608 … … 610 611 } 611 612 fprintf (f, "\n"); 613 fclose(f); 612 614 return (true); 613 615 } -
trunk/psLib/src/mathtypes/psVector.h
r4898 r4944 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 8-30 01:14:13$13 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-02 21:32:06 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 192 192 */ 193 193 bool p_psVectorPrint ( 194 FILE *f, ///< output stream194 int fd, ///< output file descriptor 195 195 psVector *a, ///< vector to print 196 196 char *name ///< name of vector (for title)
Note:
See TracChangeset
for help on using the changeset viewer.
