Skip to content

get mimetype string from a file extension in C11

License

Notifications You must be signed in to change notification settings

falsycat/mimetype.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mimetype.h

This library provides the following two functions:

/* If the extension is unknown, returns NULL. */
const char* mimetype_from_ext(const char* ext);
const char* mimetype_from_ext_n(const char* ext, size_t len);

Mapping data is came from nginx.

About

get mimetype string from a file extension in C11

Topics

Resources

License

Stars

Watchers

Forks