@@ -34,6 +34,7 @@ class Scanf extends ScanfFunction instanceof TopLevelFunction {
3434 Scanf ( ) {
3535 this .hasGlobalOrStdOrBslName ( "scanf" ) or // scanf(format, args...)
3636 this .hasGlobalOrStdOrBslName ( "wscanf" ) or // wscanf(format, args...)
37+ this .hasGlobalOrStdOrBslName ( "scanf_s" ) or // scanf_s(format, args...)
3738 this .hasGlobalName ( "_scanf_l" ) or // _scanf_l(format, locale, args...)
3839 this .hasGlobalName ( "_wscanf_l" )
3940 }
@@ -50,6 +51,7 @@ class Fscanf extends ScanfFunction instanceof TopLevelFunction {
5051 Fscanf ( ) {
5152 this .hasGlobalOrStdOrBslName ( "fscanf" ) or // fscanf(src_stream, format, args...)
5253 this .hasGlobalOrStdOrBslName ( "fwscanf" ) or // fwscanf(src_stream, format, args...)
54+ this .hasGlobalOrStdOrBslName ( "fscanf_s" ) or // fscanf_s(src_stream, format, args...)
5355 this .hasGlobalName ( "_fscanf_l" ) or // _fscanf_l(src_stream, format, locale, args...)
5456 this .hasGlobalName ( "_fwscanf_l" )
5557 }
@@ -66,8 +68,12 @@ class Sscanf extends ScanfFunction instanceof TopLevelFunction {
6668 Sscanf ( ) {
6769 this .hasGlobalOrStdOrBslName ( "sscanf" ) or // sscanf(src_stream, format, args...)
6870 this .hasGlobalOrStdOrBslName ( "swscanf" ) or // swscanf(src, format, args...)
71+ this .hasGlobalOrStdOrBslName ( "sscanf_s" ) or // sscanf_s(src, format, args...)
72+ this .hasGlobalOrStdOrBslName ( "swscanf_s" ) or // swscanf_s(src, format, args...)
6973 this .hasGlobalName ( "_sscanf_l" ) or // _sscanf_l(src, format, locale, args...)
70- this .hasGlobalName ( "_swscanf_l" )
74+ this .hasGlobalName ( "_swscanf_l" ) or // _swscanf_l(src, format, locale, args...)
75+ this .hasGlobalName ( "_sscanf_s_l" ) or // _sscanf_s_l(src, format, locale, args...)
76+ this .hasGlobalName ( "_swscanf_s_l" ) // _swscanf_s_l(src, format, locale, args...)
7177 }
7278
7379 override int getInputParameterIndex ( ) { result = 0 }
0 commit comments