File: fdotextension.c

package info (click to toggle)
yodl 4.03.02-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,700 kB
  • sloc: ansic: 7,807; perl: 683; cpp: 570; sh: 411; xml: 190; makefile: 159
file content (8 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#include "file.ih"

char const *f_dotExtension(char const *path)
{
    register char const *slash = strrchr(path, '/');

    return strrchr(slash ? slash : path, '.');      /* find last .  */
}