source: trunk/dll/delims.c@ 689

Last change on this file since 689 was 551, checked in by Gregg Young, 19 years ago

Indentation cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 480 bytes
RevLine 
[2]1#include <os2.h>
2#include <stdlib.h>
3#include <string.h>
4
5#pragma alloc_text(MISC8,skip_delim,to_delim)
6
[551]7char *skip_delim(char *a, register char *delim)
8{
[2]9
10 register char *p = a;
11
[551]12 if (p && delim) {
13 while (*p) {
14 if (strchr(delim, *p))
15 p++;
[2]16 else
[551]17 break;
[2]18 }
19 }
20 return p;
21}
22
[551]23char *to_delim(char *a, register char *delim)
24{
[2]25
26 register char *p = a;
27
[551]28 if (p && delim) {
29 while (*p) {
30 if (strchr(delim, *p))
31 break;
[2]32 p++;
33 }
34 }
35 return p;
36}
Note: See TracBrowser for help on using the repository browser.