- 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.
15 lines
230 B
Markdown
15 lines
230 B
Markdown
```c
|
|
#include <string.h>
|
|
#include <stdint.h>
|
|
|
|
#include "utils.h"
|
|
|
|
int8_t
|
|
starts_with(const char *str, const char *prefix)
|
|
{
|
|
size_t prefix_len;
|
|
|
|
prefix_len = strlen(prefix);
|
|
return (0 == strncmp(str, prefix, prefix_len));
|
|
}
|
|
```
|