IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2006, 5:04:25 PM (20 years ago)
Author:
eugene
Message:

added additional chars to whitespace checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/misc/src/test.c

    r7080 r10073  
    2323# define ISNUM(c) (isdigit(c) || (c == '-') || (c == '.'))
    2424
    25 /* Strip whitespace from the start and end of STRING. */
     25/* Strip WHITESPACE from the start and end of STRING. */
    2626int stripwhite (string)
    2727char *string;
     
    3232    return (0);
    3333
    34   for (i = 0; whitespace (string[i]); i++);
     34  for (i = 0; OHANA_WHITESPACE (string[i]); i++);
    3535
    3636  if (i)
     
    3939  i = strlen (string) - 1;
    4040
    41   for (; (i > 0) && whitespace (string[i]); i--);
     41  for (; (i > 0) && OHANA_WHITESPACE (string[i]); i--);
    4242
    4343  string[++i] = 0;
Note: See TracChangeset for help on using the changeset viewer.