| 2194 | */ |
| 2195 | |
| 2196 | const ipp_uchar_t * /* O - dateTime value or @code NULL@ */ |
| 2197 | ippGetDate(ipp_attribute_t *attr, /* I - IPP attribute */ |
| 2198 | int element) /* I - Value number (0-based) */ |
| 2199 | { |
| 2200 | /* |
| 2201 | * Range check input... |
| 2202 | */ |
| 2203 | |
| 2204 | if (!attr || attr->value_tag != IPP_TAG_DATE || |
| 2205 | element < 0 || element >= attr->num_values) |
| 2206 | return (NULL); |
| 2207 | |
| 2208 | /* |
| 2209 | * Return the value... |
| 2210 | */ |
| 2211 | |
| 2212 | return (attr->values[element].date); |
| 2213 | } |
| 2214 | |
| 2215 | |
| 2216 | /* |
no outgoing calls
no test coverage detected