In Pascal (Delphi, Lazarus), there is the Format() function for creating a formatted string from a list of variables. It works in a similar way to sprintf() function in C/C++.
On the other hand, I am not aware of any function which would set variables using a formatted string as sscanf() does in C/C++.
Did I miss something? How would you achieve a similar effect?
function swscanf(buffer, format: PWideChar): Integer; cdecl; varargs; external 'msvcrt.dll';Example call:i := swscanf(PChar('42'), PChar('%x'),@j);.