Lines Matching defs:ascii
1760 * \param[in] ascii A string containing a configuration node type.
1761 * \param[out] type The node type corresponding to \a ascii.
1778 int snd_config_get_type_ascii(const char *ascii, snd_config_type_t *type)
1780 assert(ascii && type);
1781 if (!strcmp(ascii, "integer")) {
1785 if (!strcmp(ascii, "integer64")) {
1789 if (!strcmp(ascii, "real")) {
1793 if (!strcmp(ascii, "string")) {
1797 if (!strcmp(ascii, "compound")) {
3085 * \param ascii The new value for the node, as an ASCII string.
3089 * from the string \a ascii. \a ascii must not be \c NULL, not even for
3094 * node, the node's new value is a copy of \a ascii.
3099 * <dt>-EINVAL<dd>The value in \a ascii cannot be parsed.
3100 * <dt>-ERANGE<dd>The value in \a ascii is too big for the node's type.
3107 int snd_config_set_ascii(snd_config_t *config, const char *ascii)
3109 assert(config && ascii);
3114 int err = safe_strtol(ascii, &i);
3123 int err = safe_strtoll(ascii, &i);
3132 int err = safe_strtod(ascii, &d);
3140 char *ptr = strdup(ascii);
3301 * \param[out] ascii The function puts the pointer to the returned
3302 * string at the address specified by \a ascii.
3325 int snd_config_get_ascii(const snd_config_t *config, char **ascii)
3327 assert(config && ascii);
3338 *ascii = strdup(res);
3350 *ascii = strdup(res);
3371 *ascii = strdup(res);
3376 *ascii = strdup(config->u.string);
3378 *ascii = NULL;
3385 if (*ascii == NULL)