14 lines
208 B
C
14 lines
208 B
C
#include <string.h>
|
|
|
|
#include "utils.h"
|
|
|
|
const char *
|
|
extract_file_ext(const char *path)
|
|
{
|
|
const char *dot;
|
|
|
|
dot = strrchr(path, '.');
|
|
if (NULL == dot || dot == path)
|
|
return (NULL);
|
|
return (dot + 1);
|
|
}
|