[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New version of function mkdirhier()



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


Reply to: