c - 'ap' 在 C 示例中代表什么?

标签 c coding-style

例如,在引用文献中:

type va_arg (va_list ap, type)

ap 是否代表参数指针?还有别的吗?

最佳答案

这实际上是一个很容易回答的问题。

ap 代表参数指针

来自 The C Programming Language , 第二版,Brian W. Kernighan 和 Dennis M. Ritchie:

7.3 Variable-length Argument Lists

[...] The type va_list is used to declare a variable that will refer to each argument in turn; in minprintf, this variable is called ap, for "argument pointer"

关于c - 'ap' 在 C 示例中代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24345199/

相关文章:

python - 引入大整数常量的最优雅/pythonic 方式是什么?

javascript选择样式标签?

c - 在 C 中动态分配二维数组

c++ - 运行时切换选择

c - 关闭 cuda c 中的线程

c - 如何从内核内置模块发送信号/中断到可加载内核模块?

c - 搜索二维数组中 2 个数字的乘积

c# - 与 Linq xxxOrDefault 的结果进行比较时,是否使用 default(string) 是一种常见的习惯用法?

jQuery 选项卡,使用类似菜单,单击链接时加载页面

coding-style - 除了 "treat warnings as errors"和修复内存泄漏,作为编码标准的一部分,我们还应该实现哪些其他想法?