MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / getFileType

Function getFileType

file.c:655–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653};
654
655int getFileType(const char *file) {
656 char *p = strrchr(file, '.');
657 if (p) {
658 int i;
659 for (i = 0; i < (sizeof(extension_types) / sizeof(ExtensionType)); i++) {
660 if (strcasecmp(p, extension_types[i].extension) == 0) {
661 return extension_types[i].type;
662 }
663 }
664 }
665
666 return FILE_TYPE_UNKNOWN;
667}
668
669int getNumberOfDevices() {
670 return N_DEVICES;

Callers 10

fileListGetPsarcEntriesFunction · 0.85
qr_scan_threadFunction · 0.85
mediaPathHandlerFunction · 0.85
exportMediaFunction · 0.85
handleFileFunction · 0.85
photoViewerFunction · 0.85
audioPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected