summaryrefslogtreecommitdiff
path: root/src/mt/strip.f
diff options
context:
space:
mode:
Diffstat (limited to 'src/mt/strip.f')
-rw-r--r--src/mt/strip.f31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mt/strip.f b/src/mt/strip.f
new file mode 100644
index 0000000..1cca9c4
--- /dev/null
+++ b/src/mt/strip.f
@@ -0,0 +1,31 @@
1ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
2c
3c HTCd - Copyright (C) 1998-2006 Henrik Rydberg
4c
5c This program is free software; you can redistribute it and/or modify
6c it under the terms of the GNU General Public License as published by
7c the Free Software Foundation; either version 2 of the License, or
8c (at your option) any later version.
9c
10c This program is distributed in the hope that it will be useful,
11c but WITHOUT ANY WARRANTY; without even the implied warranty of
12c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13c GNU General Public License for more details.
14c
15c You should have received a copy of the GNU General Public License
16c along with this program; if not, write to the Free Software
17c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18c
19
20 integer function strip(s,c,cn,esc)
21 character s(0:1),c(0:1),esc
22 integer i,j,cn
23 j=0
24 do 10 i=0,cn-1
25 if(c(i).eq.esc)go to 10
26 s(j)=c(i)
27 j=j+1
28 10 continue
29 strip=j
30 return
31 end