Microsoft KB Archive/45883

OS/2 PTK: Using C’s Variable-Length Argument Lists in a DLL PSS ID Number: Q45883 Article last modified on 06-22-1989 PSS database name: O_Os2PrTk

1.00 1.10

OS/2

Question:

Can I use C’s variable-length argument lists in DLLs (dynamic link libraries) both in the calls to the library and internal to the library?

Response:

Yes, you can use variable-length argument lists in a DLL. The list is passed on the stack and includes any fixed-length list that may have been declared. You can walk through a variable-length list using pointer arithmetic or the va_args macro.

Copyright Microsoft Corporation 1989.