2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
|
}else{
fossil_print("Touched %d file(s)\n", changeCount);
}
}
/*
** If zFileName is not NULL and contains a '.', this returns a pointer
** to the position after the final '.', else it returns NULL.
*/
const char * file_extension(const char *zFileName){
const char * zExt = strrchr(zFileName, '.');
return zExt ? &zExt[1] : 0;
}
|
|
>
>
|
|
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
|
}else{
fossil_print("Touched %d file(s)\n", changeCount);
}
}
/*
** If zFileName is not NULL and contains a '.', this returns a pointer
** to the position after the final '.', else it returns NULL. As a
** special case, if it ends with a period then a pointer to the
** terminating NUL byte is returned.
*/
const char * file_extension(const char *zFileName){
const char * zExt = zFileName ? strrchr(zFileName, '.') : 0;
return zExt ? &zExt[1] : 0;
}
|