scanf

[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int scanf(
   string format,
   params object[] args
);

Microsoft documentation: Link

Last updated