1wsprintf(3C) Standard C Library Functions wsprintf(3C)
2
3
4
6 wsprintf - formatted output conversion
7
9 #include <stdio.h>
10 #include <widec.h>
11
12 int wsprintf(wchar_t *s, const char *format, /* arg */ ... ););
13
14
16 The wsprintf() function outputs a Process Code string ending with a
17 Process Code (wchar_t) null character. It is the user's responsibility
18 to allocate enough space for this wchar_t string.
19
20
21 This returns the number of Process Code characters (excluding the null
22 terminator) that have been written. The conversion specifications and
23 behavior of wsprintf() are the same as the regular sprintf(3C) function
24 except that the result is a Process Code string for wsprintf(), and on
25 Extended Unix Code (EUC) character string for sprintf().
26
28 Upon successful completion, wsprintf() returns the number of characters
29 printed. Otherwise, a negative value is returned.
30
32 See attributes(5) for descriptions of the following attributes:
33
34
35
36
37 ┌───────────────────────────────────────────────────────────┐
38 │ATTRIBUTE TYPE ATTRIBUTE VALUE │
39 │MT-Level MT-Safe │
40 └───────────────────────────────────────────────────────────┘
41
43 wsscanf(3C), printf(3C), scanf(3C), sprintf(3C), attributes(5)
44
45
46
47SunOS 5.11 29 Dec 1996 wsprintf(3C)