magic.h (204B)
1 #pragma once 2 #include <stdlib.h> 3 4 #include "utils.h" 5 6 struct magic { 7 string tool; 8 size_t length; 9 unsigned char byte[16]; 10 }; 11 12 struct magic magic_detect(fd file); 13 14 extern const struct magic MAGICS[];
stabbish:) | |
| git clone https://git.sr.ht/~ashymad/stabbish | |
| Log | Files | Refs | README | LICENSE |