MCPcopy Create free account
hub / github.com/apache/singa / _tinydir_get_ext

Function _tinydir_get_ext

include/singa/utils/tinydir.h:485–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485_TINYDIR_FUNC
486void _tinydir_get_ext(tinydir_file *file) {
487 char *period = strrchr(file->name, '.');
488 if (period == NULL) {
489 file->extension = &(file->name[strlen(file->name)]);
490 } else {
491 file->extension = period + 1;
492 }
493}
494
495_TINYDIR_FUNC
496int _tinydir_file_cmp(const void *a, const void *b) {

Callers 2

tinydir.hFile · 0.85
tinydir_readfile_nFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected