LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

vsnprintf support

I am porting some basic C code to Labwindows/CVI and I am running to a problem with references to the snprintf family of functions (vsnprintf() in particular).  Is vsnprintf() supported in CVI? I'm using version 7.0.0.
0 Kudos
Message 1 of 3
(3,305 Views)
vsnprintf() is in the C99 standard but not the C89 standard. CVI conforms to the latter so no, vsnprintf() is not supported.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,292 Views)
Interesting...considering that by modern standards, sprintf() is considered a major security threat.

There are some 'portable' snprintf() packages out there. I'll consider that route.

Thanks for the clarification.
0 Kudos
Message 3 of 3
(3,287 Views)