home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / XGRP_000.SZH / DELIMS.C < prev    next >
C/C++ Source or Header  |  1991-08-21  |  504b  |  37 lines

  1. #include <stddef.h>
  2. #include "nofast.h"
  3.  
  4.  
  5.  
  6.  
  7. char * _fastcall skip_white (char *p) {
  8.  
  9.     while(*p && (*p == ' ' || *p == '\t')) *p++;
  10.     return p;
  11. }
  12.  
  13.  
  14.  
  15.  
  16. char * _fastcall skip_nonwhite (char *p) {
  17.  
  18.     while(*p && *p != ' ' && *p != '\t') *p++;
  19.     return p;
  20. }
  21.  
  22.  
  23.  
  24.  
  25. char * _fastcall to_delim (char *p, char *delim) {
  26.  
  27.     char *d;
  28.  
  29.     while(*p) {
  30.          d = delim;
  31.          while(*d && *p != *d) d++;
  32.          if(*p == *d) break;
  33.          p++;
  34.     }
  35.     return p;
  36. }
  37.