wsprintf(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

wsprintf(3c)

wsprintf(3C)             Standard C Library Functions             wsprintf(3C)

NAME
       wsprintf - formatted output conversion

SYNOPSIS
       #include <stdio.h>
       #include <widec.h>

       int wsprintf(wchar_t *s, const char *format, /* arg */ ... ););

DESCRIPTION
       The  wsprintf()  function  outputs  a Process Code string ending with a
       Process Code (wchar_t) null character. It is the user's  responsibility
       to allocate enough space for this wchar_t string.


       This  returns the number of Process Code characters (excluding the null
       terminator) that have been written. The conversion  specifications  and
       behavior of wsprintf() are the same as the regular sprintf(3C) function
       except  that the result is a Process Code string for wsprintf(), and an
       Extended UNIX Code (EUC) character string for sprintf().

RETURN VALUES
       Upon successful completion, wsprintf() returns the number of characters
       printed. Otherwise, a negative value is returned.

USAGE
       The functions provided in <widec.h> are provided for backwards compati‐
       bility, and are not recommended for use in  newer  code.  Instead,  the
       equivalent  functions  from <wchar.h> should be used for greater porta‐
       bility to other systems.


       See swprintf(3C) for the recommended replacement for wsprintf().

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ MT-LevelMT-Safe


SEE ALSO
       printf(3C),  scanf(3C), sprintf(3C), swprintf(3C), wsscanf(3C), attrib‐
       utes(7)

HISTORY
       The wsprintf() function was added to Solaris in  the  Solaris  2.0  re‐
       lease.


       In  Solaris  2.0 through 2.5, this function was located in the libw li‐
       brary. In Solaris 2.6 and later, it is located in libc,  and  the  libw
       library  is  a filter on libc to maintain binary and source compatibil‐
       ity.

Oracle Solaris 11.4               25 Nov 2024                     wsprintf(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3