home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
simtel
/
sigm
/
vols000
/
vol078
/
detab.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1984-04-29
|
361 b
|
21 lines
/* detab - replace tabs with blanks */
detab (s, d)
/**********/
char *s, *d;
{
int i;
for (i = 0; *d = *s; ++s)
if (*s == '\t')
do
*d++ = ' ';
while (++i%8);
else
{
++i;
++d;
}
return (++i);
} /* detab */