Next: , Up: Using autosprintf in own programs [Contents]


3.1 Source code changes

In source code files that shall use autosprintf, add

#include "autosprintf.h"
using gnu::autosprintf;

The include file defines the class autosprintf, in a namespace called gnu. The ‘using’ statement makes it possible to use the class without the (otherwise natural) gnu:: prefix.

AltStyle によって変換されたページ (->オリジナル) /