阅读背景:

使用stdargs (va_start)的C程序的奇怪行为(SEGFAULT)

来源:互联网 

I wrote a variadic C function which mission is to allocate the needed memory for a buffer, and then sprintf the args given to this function in that buffer. But I'm seeing a strange behavior with it. It works only once. If I have two calls for this function it segfaults.I wrote a variadic C function which mission is




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: