mainxnprintf for C/C++ - Summary

Membership Info
Project Admin:
1 active member

Group identification
Id: #1370
System Name: xnprintf
Name: xnprintf for C/C++
Group Type: non-GNU software and documentation

Search in this Group


This project is not part of the GNU Project.

Those functions are very useful to fight against buffer overflow and other nice things of the same kind. They work like printf() and snprintf() but you submit a limit to the size of output text ; you can then safely snprintf() into a buffer without any overflow problem.

nprintf() / vnprintf()
snprintf() / vsnprintf()
fnprintf() / vfnprintf()
asprintf() / vasprintf()
asnprintf() / vasnprintf()

Everything is thread aware (fully re-entrant) i.e you can use it with any multi-threaded system. It works on 32 and 64-bit platforms (and maybe higher). It works on ms-dos/16-bit. It works on Windows (win 3, win95, win98, winNT, win2000, etc). It works on Linux, OpenBSD, FreeBSD, NetBSD and so on.

The source code uses only standard C then it can be used everywhere without any special needs. Just copy and paste the file.

Released under the GNU Public License (GPL) and, at your option, under the modified BSD license.

For bug report, please contact -email is unavailable-

Source files:

Registration Date: Sat 16 Feb 2002 10:02:08 PM UTC
License: GNU General Public License v2 or later
Development Status: 6 - Mature


Latest News rss feed
Mature update
     posted by taillandier, Thu 09 Jan 2003 05:21:22 PM UTC - 0 replies

After about one year of existance, the first bugs have been discovered and corrected. This small library is know believed as "mature".

[Submit News]
[1 news in archive]

Development Tools

Back to the top

Powered by Savane 3.5