src/chxj_tag_util.c
/**
 * The value of the SIZE attribute is acquired.
 *
 * @param doc  [i] The pointer to the Doc structure at the output
 *                 destination is specified.
 * @param tag  [i] The tag node to want to acquire the SIZE attribute
 *                 is specified.
 * @param pool [i] To use POOL.
 * @return The value of the SIZE attribute is returned. NULL is
 *         returned when not is.
 */
The value of the SIZE attribute is acquired.
@param doc  [i] The pointer to the Doc structure at the output
destination is specified.
@param tag  [i] The tag node to want to acquire the SIZE attribute
is specified.
@param pool [i] To use POOL.
@return The value of the SIZE attribute is returned. NULL is
returned when not is.
The value of the SIZE attribute is acquired . @param doc [ i ] The pointer to the Doc structure at the output destination is specified . @param tag [ i ] The tag node to want to acquire the SIZE attribute is specified . @param pool [ i ] To use POOL . @return The value of the SIZE attribute is returned . NULL is returned when not is .
char *
qs_get_size_attr(Doc *doc, Node *tag, apr_pool_t *pool)
{
  Attr *attr;
  for (attr = qs_get_attr(doc,tag); 
       attr; 
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    if (STRCASEEQ('s','S',"size",name)) {
      return apr_pstrdup(pool, (value ? value : ""));
    }
  }
  return NULL;
}
char * qs_get_size_attr ( Doc * doc , Node * tag , apr_pool_t * pool ) { Attr * attr ; for ( attr = qs_get_attr ( doc , tag ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { return apr_pstrdup ( pool , ( value ? value : " " ) ) ; } } return NULL ; }
The value of the SIZE attribute is acquired.
The value of the SIZE attribute is acquired .