IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2006, 11:43:59 AM (20 years ago)
Author:
magnier
Message:

added JPEG and PSF I/O methods to pmFPAfile, added pmSourcePixelWeights

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/pslib/psAdditionals.c

    r6725 r6859  
    143143{
    144144    psList *values = psListAlloc(NULL); // The list of values to return
     145    if (string == NULL)
     146        return values;  // NULL string is not an error, just an empty list
     147
    145148    unsigned int length = strlen(string); // The length of the string
    146149    unsigned int numSplitters = strlen(splitters); // Number of characters that might split
     
    176179}
    177180
     181psArray *psStringSplitArray (const char *string, const char *splitters)
     182{
     183
     184    psList *list = psStringSplit (string, splitters);
     185    psArray *array = psListToArray (list);
     186    psFree (list);
     187    return array;
     188}
     189
    178190#ifndef whitespace
    179191#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
Note: See TracChangeset for help on using the changeset viewer.