From: WATANABE Hirofumi Date: 2003-07-22T18:14:32+09:00 Subject: Re: Should String#strip take a parameter? Hi, Xiangrong Fang writes: > I have a question regarding strip. I wrote a DLL in other language, and > used the following to call the dll function in ruby: > > arg = " " * 100 > myfunc.Call(arg) > > after that arg may contain a string such as: > > "return value\000" > > I used strip, but the strip does not strip away terminating null > character... "return value\000".unpack("A*")[0] -- eban