Revision 9b9561da
Added by danij over 15 years ago
Files
- added
- modified
- copied
- renamed
- deleted
- doomsday
- engine
- api
- portable
- src
- con_buffer.c (diff)
- con_busy.c (diff)
- dam_main.c (diff)
- dd_main.c (diff)
- dd_wad.c (diff)
- dd_zip.c (diff)
- def_read.c (diff)
- dgl_texture.c (diff)
- gl_texmanager.c (diff)
- m_filehash.c (diff)
- m_misc.c (diff)
- net_demo.c (diff)
- p_data.c (diff)
- r_data.c (diff)
- r_extres.c (diff)
- sys_filein.c (diff)
- sys_sock.c (diff)
- src
- plugins
- engine
Implemented dd_snprintf to standardize the differences between the MSVC and C99 implementations. The output buffer is always terminated. Return value is as per the MSVC specification: Number of characters written to the output buffer if lower than or equal to the size of the output buffer (minus the terminating NULL), else -1.
Replaced all instances of snprintf with dd_snprintf.
Exported both dd_vsnprintf and dd_snprintf via the public API.
Addressed return value of dd_vsnprintf to account for the terminating NULL.