IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13582


Ignore:
Timestamp:
May 31, 2007, 5:37:19 PM (19 years ago)
Author:
jhoblitt
Message:

change psArgumentHelpSimple() to accept a FILE arg

Location:
trunk/psLib/src/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psArguments.c

    r13563 r13582  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-05-31 02:57:51 $
     9 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-06-01 03:37:19 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    506506}
    507507
    508 void psArgumentHelpSimple(psMetadata *arguments)
     508void psArgumentHelpSimple(FILE *stream, psMetadata *arguments)
    509509{
    510510    PS_ASSERT_PTR_NON_NULL(arguments, );
     
    521521    while ((item = psMetadataGetAndIncrement(iter))) {
    522522        // Initial indent + name + indent + comment
    523         printf("%*s" "%-*s" "%*s" "%s\n",
     523        fprintf(stream, "%*s" "%-*s" "%*s" "%s\n",
    524524                NUM_SPACES, " ",
    525525                maxName, item->name,
  • trunk/psLib/src/types/psArguments.h

    r13555 r13582  
    55 *  @author David Robbins, MHPCC
    66 *
    7  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-05-30 22:43:58 $
     7 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-06-01 03:37:19 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7474/** Prints to stdout a simplifed guide to the command-line arguments.      */
    7575void psArgumentHelpSimple(
     76    FILE *stream,                      ///< FILE* to write too
    7677    psMetadata *arguments              ///< metadata container for arguments
    7778);
Note: See TracChangeset for help on using the changeset viewer.