[previous] 0175 [next] [U] Unknown length modifier used with 'p' conversion specifier, number %s.
Explicitly undefined REFERENCE - ISO:C90-7.9.6.1 Formatted input/output functions

An unknown length modifier is being used in conjunction with a '%p' conversion specifier in a printf format string.

Length modifiers are used in conjunction with integer and floating conversion specifiers but not with '%p'.

For example:


/*PRQA S 184,185,336,602,1307,2017,3122,3200,3209,3227,3408,3602,3625 ++*/

#include <stdio.h>

extern void foo(void *pv)
{
    printf("Buffer address is: %p",   pv);           /* OK */

    printf("Buffer address is: %lp",  pv);           /* Message 0175 */
    printf("Buffer address is: %hp",  pv);           /* Message 0175 */
}

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents