10.37 __attribute__((format_arg(string-index))) function attribute

This function attribute specifies that a user-defined function modifies format strings.

Use of this attribute enables calls to functions like printf(), scanf(), strftime(), or strfmon(), whose operands are a call to the user-defined function, to be checked for errors.


This function attribute is a GNU compiler extension that the ARM compiler supports.

Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.