[DllImport("msvcrt.dll", SetLastError=true)]
static extern int scanf(string format, __arglist);
None.
Do you know one? Please contribute it!
Use System.Text.StringBuilder instead of System.String.
Please add some!
[DllImport("msvcrt.dll")]
public static extern int scanf(string format, __arglist);
public static void Main(string[] args)
{
int i;
float f;
StringBuilder s = new StringBuilder();
int count = scanf("%d-%f-%s", __arglist(out i, out f, s));
Console.WriteLine("Read {0} values: {1}, {2}, {3}", count, i, f, s);
}
