c-md/srcs/validator/validator.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

24 lines
343 B
Markdown

```c
#include <stddef.h>
#include "validator.h"
#include "utils.h"
int8_t
validator_validate_args(t_args *args)
{
if (NULL == args->input)
{
if (NULL == args->ext)
return (1);
return (0);
}
if (NULL == args->ext)
{
args->ext = infer_ext_from_filename(args->input);
if (NULL == args->ext)
return (2);
}
return (0);
}
```