Re: [PATCH 1/2] mailinfo: support rfc3676 (format=flowed) text/plain messages
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 15, 2008, 18:43 UTC
- Message-ID
- <76718490802151043q56340ea9i247dbb1601f8d225@mail.gmail.com>
- In-Reply-To
- <alpine.LSU.1.00.0802151035100.30505@racer.site>
On Fri, Feb 15, 2008 at 5:41 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 5 quoted lines
> > + char *cp = line; > > + while (*cp == '>' && *cp != 0) > > + cp++; > > How about using strchrnul()?
Actually strchrnul() here isn't correct. I want to strip leading '>' only. strchrnul() will search for the first occurrence (skipping over non-'>' to do so), which is not what I want.
> > + while (*cp != '\n' && *cp !=0) > > + cp++; > > Again, this is the job for strchrnul().
Yep, here strchrnul would be fine.
j.