RE: New rtrim()
- Posted by cetaylor at compuserve.com Sep 13, 2001
- 404 views
Igor, Thanks for the suggestion. I tried it in putsxy.e and didn't see any improvement in performance, so for the moment I'll stick with Jiri's original version. Colin Taylor Igor Kachan wrote: > Dear Eu users, > > There is the rtrim() function in > the putsxy.e lib. > > This function removes zeros from > the end of a sequence. > > New rtrim_() function makes the > same thing about 30% faster > and is more simple. > > -- > function rtrim_(sequence s) > for i=length(s) to 1 by -1 do > if s[i] then > return s[1..i] end if end for > return {} > end function > -- > > Use it please if you need such a function. > > Regards, > Igor Kachan > kinz at peterlink.ru > >