例如,在参考中:
type va_arg (va_list ap, type)
Run Code Online (Sandbox Code Playgroud)
是否ap代表参数指针?别的什么?
ap代表参数指针。事实上,它有时缩写为arg_ptr:
type va_arg(
va_list arg_ptr,
type
);
Run Code Online (Sandbox Code Playgroud)
type- 要检索的参数类型。arg_ptr- 指向参数列表的指针。