/* * fnlastsuf.c -- find last suffix in basename of filename * * Part of publib. See man page for more information * "@(#)publib-fname:$Id: fnlastsuf.c,v 1.2 1994/06/20 20:49:24 liw Exp $" */ #include #include #include "publib/fname.h" char *fnlastsuf(const char *fname) { assert(fname != NULL); return strchr(fnbase(fname), '.'); }