#include <lightmediascanner_utils.h>
#include <ctype.h>
#include <alloca.h>
Include dependency graph for lightmediascanner_utils.c:
Go to the source code of this file.
Functions | |
void | lms_strstrip (char *str, unsigned int *p_len) |
int | lms_which_extension (const char *name, unsigned int name_len, const struct lms_string_size *exts, unsigned int exts_len) |
void lms_strstrip | ( | char * | str, | |
unsigned int * | p_len | |||
) |
Strips string, in place.
str | string to be stripped. | |
p_len | string length to analyse, also the place where the final size is stored. |
Definition at line 13 of file lightmediascanner_utils.c.
int lms_which_extension | ( | const char * | name, | |
unsigned int | name_len, | |||
const struct lms_string_size * | exts, | |||
unsigned int | exts_len | |||
) |
Find out which of the given extensions matches the given name.
name | string to analyse. | |
name_len | string length. | |
exts | array of extensions to be checked. | |
exts_len | number of items in array exts |
exts
or -1 if it doesn't match none. Definition at line 69 of file lightmediascanner_utils.c.
References lms_string_size::str.