src/lib/lightmediascanner_utils.c File Reference

#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)


Function Documentation

void lms_strstrip ( char *  str,
unsigned int *  p_len 
)

Strips string, in place.

Parameters:
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.

Parameters:
name string to analyse.
name_len string length.
exts array of extensions to be checked.
exts_len number of items in array exts
Returns:
index in exts or -1 if it doesn't match none.

Definition at line 69 of file lightmediascanner_utils.c.

References lms_string_size::str.


Generated on Thu Dec 13 02:04:05 2007 for Light Media Scanner by  doxygen 1.5.2