9.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.

Note

This function attribute is a GNU compiler extension that the ARM compiler supports.
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.