[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


swprintf

Formats text in a wide character type string.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <wchar.h>
  int swprintf(wchar_t * S, size_t N,
   const wchar_t * format, ...);
Parameters:

Parameters for this function are:

s  
wchar_t*  
The string buffer to hold the formatted text  
n  
size_t  
Number of characters allowed to be written  
format  
wchar_t*  
The format string  
....  
 
Variable arguments  

Remarks:

Performs the same task as sprintf for a wide character type with an additional parameter for the maximum number of wide characters to be written. No more than n wide characters will be written including the terminating NULL wide character, which is always added unless the n is zero.

Refer to the "wprintf" function for details of the format string.

Return:

Returns the number of characters assigned to S, not including the null character, or a negative number if n or more characters were requested to be written.

See Also:

"Wide Character and Byte Character Stream Orientation"

"fwprintf"

"sprintf"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000