GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FIRESTRING_SNPRINTF (3)

NAME

firestring_snprintf - snprintf(3) provided as a replacement so programs can maintain ANSI C compliance

CONTENTS

Synopsis
Description
Return Value
Author
See Also

SYNOPSIS

#include <firestring.h>
-lfirestring

long firestring_snprintf(char * out, const size_t size, const char * const format, ...)

DESCRIPTION

firestring_snprintf() writes a maximum of size bytes to out based on the formatting rules specified in format and the further arguments provided.

As snprintf(3) is not a ANSI C function, firestring_snprintf() is provided as a replacement for programs wishing to maintain ANSI C compliance. It acts much like snprintf(3), except that it only uses single-letter format tags, and only supports a subset of the common formats.
Formats supported:
  %s - char *
%d - int
%l - long
%u - unsigned int
%y - unsigned long
%g - signed long long
%o - unsigned long long
%f - double
%t - time_t (printed in ISO format)
%e - struct firestring_estr_t *
The %s type handles NULL values by displaying the string "(null)". All numeric types support zero padding through the standard %02d format.

RETURN VALUE

Returns the number of bytes written to out not including the trailing nil.

AUTHOR

Ian Gulliver <ian@penguinhosting.net>

SEE ALSO

libfirestring(3)
Search for    or go to Top of page |  Section 3 |  Main Index


--> FIRESTRING_SNPRINTF (3) 2003-05-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.