The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-15-2008
lagigliaivan lagigliaivan is offline
Registered User
 

Join Date: May 2008
Posts: 26
does snprintf guarantee null termination?

Hi All,

I was reading the man page of snprintf function and it saids that snprintf adds a null terminator at the end of the string, but I remember once someone told me that snprintf doesn't guarantee the insertion of a null terminator character.

What do you think? Does anyone have experience on it??

Thanks!!
Reply With Quote
Forum Sponsor