Byte Order MArk (BOM) information of a file. This struct is created by detect_bom() ...
Definition: bom.h:72
int length
Definition: bom.h:76
struct bom_t bom_t
Byte Order MArk (BOM) information of a file. This struct is created by detect_bom() ...
bom_t * detect_bom(FILE *fd)
check if the file has a bom
Definition: bom.c:37
bom_endianness_t endianness
Definition: bom.h:78
bom_endianness_t
endianness detected in bom
Definition: bom.h:57
void print_bom(bom_t *bom)
debug function to print bom
Definition: bom.c:32
char * bom_to_string(int length, unsigned char *bom, bom_endianness_t endianness)
hex representation of the bom
Definition: bom.c:3
char * bom
Definition: bom.h:74