c-md/srcs/utils/string/extract_file_ext.c.md
lohhiiccc 80f7a1b9b6 feat(build): add build instructions in README and convert sources to .c.md format
- Add detailed build and bootstrap instructions to README.md.
 - Convert all source and header files from .c/.h to .c.md/.h.md.
 - Add bootstrap.sh script for automated building across version history.
 - Update Makefile and sources.mk to reflect new markdown-based source organization.
2026-01-12 14:54:49 +01:00

217 B

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