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