2

I want to realize the next function on Pascal

unsigned long SUBSTRINGS(sqlrcur *curref, ... )
{
    va_list ap;
    int argc, I;
.....
}  

How can I do it on Pascal? Is it possible?

Anton Golovenko
  • 634
  • 4
  • 19

1 Answers1

1

According to rosettacode,

Standard Pascal does not allow variadic functions.

See Free Pascal instead.

See also Pascal - How to pass variable number of parameters to a subprogram ? (variadic function)

Pascal Getreuer
  • 2,906
  • 1
  • 5
  • 14
  • Free Pascal supports variadic functions, but mostly only of its own safe type (array of const). It can call unsafe C variadic functions though, but not define unsafe C type variadic functions – Marco van de Voort Jan 14 '21 at 13:23