Re: [GSoC][PATCH v2] use strchrnul() in place of strchr() and strlen()

2014-03-10 Thread Junio C Hamano
Rohit Mani writes: > Avoid scanning strings twice, once with strchr() and then with > strlen(), by using strchrnul(). Thanks. The patch looks good. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http

[GSoC][PATCH v2] use strchrnul() in place of strchr() and strlen()

2014-03-07 Thread Rohit Mani
Avoid scanning strings twice, once with strchr() and then with strlen(), by using strchrnul(). Helped-by: Junio C Hamano Signed-off-by: Rohit Mani --- PATCH v2 Updated commit description Updated code according to suggestions [1] [1] http://article.gmane.org/gmane.comp.version-control