![]() |
![]() |
0200 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-7.9.6.2 Formatted input/output functions | ||||||
A length modifier is being used in conjunction with a '%c' conversion specifier in a scanf format string. Length modifiers are used in conjunction with integer and floating conversion specifiers but not with '%c'. For example:
/*PRQA S 336,602,1302,1307,2017,3122,3132,3200,3209,3335,3408,3602,3625 ++*/
#include <stdio.h>
extern void foo(void)
{
char buf[20];
scanf("%10c", buf); /* */
scanf("%10hc", buf); /* Message 0200 */
scanf("%10lc", buf); /* Message 0200 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |