Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
yaml.h
✓ #include <yaml.h>
Parse a YAML file
#include <yaml.h>
#include <stdio.h>
int main() {
yaml_parser_t parser;
yaml_parser_initialize(&parser);
FILE *file = fopen("example.yaml", "rb");
yaml_parser_set_input_file(&parser, file);
yaml_event_t event;
while (yaml_parser_parse(&parser, &event)) {
if (event.type == YAML_STREAM_END_EVENT) break;
yaml_event_delete(&event);
}
yaml_parser_delete(&parser);
fclose(file);
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.