Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

const char* mpd_parse_sticker ( const char *  input,
size_t *  name_length_r 

Parse a sticker input line in the form "name=value".

input the input value, the value from a received pair named "sticker"
name_length_r the length of the name (starting at the beginning of the input string) is returned here
a pointer to the sticker value, or NULL on error

Definition at line 119 of file sticker.c.

References mpd_parse_sticker().

Referenced by mpd_parse_sticker().

      const char *eq;

      eq = strchr(input, '=');
      if (eq == NULL || eq == input)
            return NULL;

      *name_length_r = eq - input;
      return eq + 1;

Generated by  Doxygen 1.6.0   Back to index