IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 19, 2005, 3:41:17 PM (21 years ago)
Author:
asc
Message:

Added null checking on prepend/append funcs and added editor coding standards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.c

    r3866 r3997  
    11
    22/** @file  psString.c
     3 *
     4 * -*- mode: C; c-basic-indent: 4; tab-width: 8; indent-tabs-mode: nil -*-
     5 * vim: set cindent ts=8 sw=4 expandtab:
    36 *
    47 *  @brief Contains the definition of string utility functions
     
    912 *  @author Eric Van Alst, MHPCC
    1013 *
    11  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-05-06 18:15:25 $
     14 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-05-20 01:41:17 $
    1316 *
    1417 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6366    ssize_t         tailLength;         // length of string to append
    6467
     68    if (!dest || !format) {
     69        return 0;
     70    }
     71
    6572    if (!*dest) {
    6673        *dest = psStringCopy("");
     
    103110    ssize_t         headLength;         // length of string to prepend
    104111    char            *oldDest;           // copy of original string
     112
     113    if (!dest || !format) {
     114        return 0;
     115    }
    105116
    106117    if (!*dest) {
Note: See TracChangeset for help on using the changeset viewer.