C Programming: Forward variable argument list

前端 未结 4 1176
北荒
北荒 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:26

    I'm not (off the top of my head) familiar with how to implement this. I would suggest looking at an implementation of functions like printf. Several open source implementations exist. glibc, uclibc (not sure what bsd and opensolaris call/use for their libc).

提交回复
热议问题