FreeBSD/usr.bin/xlint/lint1/err.c
/*
 * If Fflag is not set lbasename() returns a pointer to the last
 * component of the path, otherwise it returns the argument.
 */
If Fflag is not set lbasename() returns a pointer to the last
component of the path, otherwise it returns the argument.
If Fflag is not set lbasename () returns a pointer to the last component of the path otherwise it returns the argument .
static const char *
lbasename(const char *path)
{
	const	char *cp, *cp1, *cp2;
	if (Fflag)
		return (path);
	cp = cp1 = cp2 = path;
	while (*cp != '\0') {
		if (*cp++ == '/') {
			cp2 = cp1;
			cp1 = cp;
		}
	}
	return (*cp1 == '\0' ? cp2 : cp1);
}
static const char * lbasename ( const char * path ) { const char * cp , * cp1 , * cp2 ; if ( Fflag ) return ( path ) ; cp = cp1 = cp2 = path ; while ( * cp != ' \0 ' ) { if ( * cp ++ == ' ' ) { cp2 = cp1 ; cp1 = cp ; } } return ( * cp1 == ' \0 ' ? cp2 : cp1 ) ; }
If Fflag is not set lbasename() returns a pointer to the last
 component of the path, otherwise it returns the argument.
If Fflag is not set lbasename () returns a pointer to the last component of the path otherwise it returns the argument .