- 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.
16 lines
217 B
Markdown
16 lines
217 B
Markdown
```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);
|
|
}
|
|
```
|