Changeset 551 for trunk/dll/strips.c


Ignore:
Timestamp:
Feb 28, 2007, 2:33:51 AM (19 years ago)
Author:
Gregg Young
Message:

Indentation cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/strips.c

    r371 r551  
    2525  // Chop line at CR or NL
    2626  PSZ psz = strchr(pszSrc, '\r');
     27
    2728  if (psz)
    2829    *psz = 0;
     
    3637  // Convert newline to nul, return pointer to next or NULL
    3738  PSZ psz = strchr(pszSrc, '\n');
     39
    3840  if (psz) {
    3941    *psz = 0;
     
    4345}
    4446
    45 void strip_trail_char (char *pszStripChars,char *pszSrc)
     47void strip_trail_char(char *pszStripChars, char *pszSrc)
    4648{
    4749  char *psz;
    4850
    49   if(pszSrc && *pszSrc && pszStripChars && *pszStripChars) {
     51  if (pszSrc && *pszSrc && pszStripChars && *pszStripChars) {
    5052    psz = pszSrc + strlen(pszSrc) - 1;
    5153    // while not empty and tail char in strip list
    52     while (*pszSrc && strchr(pszStripChars,*psz) != NULL) {
     54    while (*pszSrc && strchr(pszStripChars, *psz) != NULL) {
    5355      *psz = 0;
    5456      psz--;
     
    5759}
    5860
    59 void strip_lead_char (char *pszStripChars,char *pszSrc)
     61void strip_lead_char(char *pszStripChars, char *pszSrc)
    6062{
    6163  char *psz = pszSrc;
    6264
    63   if(pszSrc && *pszSrc && pszStripChars && *pszStripChars) {
     65  if (pszSrc && *pszSrc && pszStripChars && *pszStripChars) {
    6466    // while lead char in strip list
    65     while(*psz && strchr(pszStripChars,*psz) != NULL)
     67    while (*psz && strchr(pszStripChars, *psz) != NULL)
    6668      psz++;
    67     if(psz != pszSrc)
    68       memmove(pszSrc,psz,strlen(psz) + 1);
     69    if (psz != pszSrc)
     70      memmove(pszSrc, psz, strlen(psz) + 1);
    6971  }
    7072}
    71 
Note: See TracChangeset for help on using the changeset viewer.