Changeset 8fe522d
- Timestamp:
- Dec 23, 2018, 12:01:43 AM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 135bc14
- Parents:
- 4cb2d54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/utils/strutils.c
r4cb2d54 r8fe522d 23 23 const char_t *aubio_str_get_extension(const char_t *filename) 24 24 { 25 // find last occurence of dot character 26 const char_t *ext; 25 27 if (!filename) return NULL; 26 // find last occurence of dot character 27 const char_t *ext = strrchr(filename, '.'); 28 ext = strrchr(filename, '.'); 28 29 if (!ext || ext == filename) return ""; 29 30 else return ext + 1;
Note: See TracChangeset
for help on using the changeset viewer.