C Programming: Forward variable argument list

前端 未结 4 1140
北荒
北荒 2020-11-28 09:32

I\'m trying to write a function that accepts a variable number of parameters like printf, does some stuff, then passes the variable list to printf. I\'m not sure how to do t

4条回答
  •  有刺的猬
    2020-11-28 10:29

    You'll be passing along the arglist value to a function designed to consume it. See the stdarg and vprintf documentation for more clues.

提交回复
热议问题