Hello all,
I am using vfprintf in my application. I am using va_list as a char * and then typecast it with va_list data type.
This thing works on 32-Bit platform. However, it doesn't work on 64-Bit platform.
Do va_start, va_copy and va_stop will solve this issue?
For Example, This is the existing code on 32-bit
char t[5];
char *p_t;
p_t = t;
while(){
vfprintf(fd, p_format , p_t + sizeof(void *))
}
However, I want to execute the same code with va_start, va_copy and va_end between vfprintf. Will this work?
I have tried but didn't get it through. Could you please help me out to resolve this issue?
Thanks,
Saurabh
I am using vfprintf in my application. I am using va_list as a char * and then typecast it with va_list data type.
This thing works on 32-Bit platform. However, it doesn't work on 64-Bit platform.
Do va_start, va_copy and va_stop will solve this issue?
For Example, This is the existing code on 32-bit
char t[5];
char *p_t;
p_t = t;
while(){
vfprintf(fd, p_format , p_t + sizeof(void *))
}
However, I want to execute the same code with va_start, va_copy and va_end between vfprintf. Will this work?
I have tried but didn't get it through. Could you please help me out to resolve this issue?
Thanks,
Saurabh
Comment