scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <string.h>
 2
 3#include <scc/scc.h>
 4
 5char *
 6canonical(char *path)
 7{
 8	char *name = strrchr(path, '/');
 9	return (name && name[1]) ? name+1 : path;
10}