Lines Matching refs:maxlen

31 #define CF(format,target,v,maxlen)                              \  argument
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \ argument
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen) in mnote_fuji_entry_get_value() argument
202 memset (val, 0, maxlen); in mnote_fuji_entry_get_value()
203 maxlen--; in mnote_fuji_entry_get_value()
207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen); in mnote_fuji_entry_get_value()
208 CC (entry->components, 4, val, maxlen); in mnote_fuji_entry_get_value()
209 memcpy (val, entry->data, MIN(maxlen, entry->size)); in mnote_fuji_entry_get_value()
228 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_fuji_entry_get_value()
229 CC (entry->components, 1, val, maxlen); in mnote_fuji_entry_get_value()
235 snprintf (val, maxlen, in mnote_fuji_entry_get_value()
244 snprintf (val, maxlen, in mnote_fuji_entry_get_value()
248 strncpy (val, _(items[i].elem[j].string), maxlen); in mnote_fuji_entry_get_value()
251 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_fuji_entry_get_value()
252 CC (entry->components, 2, val, maxlen); in mnote_fuji_entry_get_value()
255 snprintf (val, maxlen, "%i, %i", vs, vs2); in mnote_fuji_entry_get_value()
259 CF (entry->format, EXIF_FORMAT_RATIONAL, val, maxlen); in mnote_fuji_entry_get_value()
260 CC (entry->components, 1, val, maxlen); in mnote_fuji_entry_get_value()
263 snprintf (val, maxlen, _("%2.2f mm"), (double) vr.numerator / in mnote_fuji_entry_get_value()
270 strncpy (val, (char *)entry->data, MIN(maxlen, entry->size)); in mnote_fuji_entry_get_value()
274 snprintf (val, maxlen, "%i", vs); in mnote_fuji_entry_get_value()
278 snprintf (val, maxlen, "%lu", (long unsigned) vl); in mnote_fuji_entry_get_value()
282 snprintf (val, maxlen, "%li", (long int) vsl); in mnote_fuji_entry_get_value()
287 snprintf (val, maxlen, "%2.4f", (double) vr.numerator / in mnote_fuji_entry_get_value()
293 snprintf (val, maxlen, "%2.4f", (double) vsr.numerator / in mnote_fuji_entry_get_value()
298 snprintf (val, maxlen, _("%i bytes unknown data"), in mnote_fuji_entry_get_value()