src/string.c
/**
 * Check if the given fname suffixes the hide tag
 */
Check if the given fname suffixes the hide tag
Check if the given fname suffixes the hide tag
char *whiteout_tag(const char *fname) {
	DBG_IN();
	char *tag = strstr(fname, HIDETAG);
	if (tag && tag != fname && strlen(tag) == strlen(HIDETAG)) {
		return tag;
	}
	return NULL;
}
char * whiteout_tag ( const char * fname ) { DBG_IN ( ) ; char * tag = strstr ( fname , HIDETAG ) ; if ( tag && tag != fname && strlen ( tag ) == strlen ( HIDETAG ) ) { return tag ; } return NULL ; }
Check if the given fname suffixes the hide tag
Check if the given fname suffixes the hide tag
// check if fname has tag, fname is not only the tag, file name ends with the tag // TODO: static strlen(HIDETAG)