On Fri, Feb 15, 2008 at 5:41 AM, Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: > > + 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. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html