MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ippGetDate

Function ippGetDate

cups/ipp.c:2196–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194 */
2195
2196const ipp_uchar_t * /* O - dateTime value or @code NULL@ */
2197ippGetDate(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/*

Callers 4

print_attrFunction · 0.85
print_ippserver_attrFunction · 0.85
print_json_attrFunction · 0.85
cups_collection_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected