Svante Signell, le Fri 13 Jan 2012 10:11:20 +0100, a écrit :
> > >   /* Create dir after last '/' or no '/' in path */
> > >   if ((dirp = strchr(src, '\0')) != NULL)
> > 
> > Why using strchr to look for \0? Simply use strlen to get the length
> > until the string termination.
> 
> You mean len = strlen(src); ?

Yes.

Samuel


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to