c-md/srcs/utils/string/extract_file_ext.c
2026-01-12 00:48:09 +01:00

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);
}