03.06.2016, 11:17
The delimiters can be done with "p" or "P" (for optional) specifiers. Optional specifier is needed sometimes to avoid some sscanf warnings when characters such as parenthesis are used.
pawn Код:
// assuming "text" stores "03/06/2016"
new
dd,
mm,
yy;
sscanf(text, "p</>iii", dd, mm, yy);
// dd = 3
// mm = 6
// yy = 2016