C251: EXTENDED SCANF ARGUMENT DATA SPACE

Information in this article applies to:

C251 Version 3

QUESTION

I understand that the total number of bytes of arguments you can
pass to a function using a variable-length argument list is limited.
The limit is just 40 bytes for the LARGE memory model. That amounts
to ten 4-byte arguments. I need to pass more than that to the scanf
function.

In my application I must convert a very long command string that
contains 16 HEX values. The sscanf invocation appears as follows:

Specify the extended parameter with the MAXARGS directive under
Options - C251 - Misc Controls. For the SMALL and TINY memory
models, the initial limitation was 15 bytes. You may now specify
MAXARGS(55) for these memory models. For all other memory
model the initial limitation was 40 bytes. You may now specify
MAXARGS(80) for these memory models.

Important information

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.