> > while (t > conn->in.buf && xisspace(*t)) > > t--; > > while (t > conn->in.buf && !xisspace(*t)) > > t--; > > > > As far as xisspace() doesn't seem to have side-effects this code makes me > > guess what's going on here :) > It scans the string backwards one word (t-- steps one character back).
Yes, exactly, skip over spaces (if there are any and we're still inside) and then over not spaces (again if there are any left inside) -- at the second glance it becomes not strange at all I must say. I was guessing because had read the code in such a way: whether there are spaces, or not spaces, let's skip over it checking that we're inside buffer :) -- my fault, sorry. -- Igor