wsscanf(3C) Standard C Library Functions wsscanf(3C)NAME
wsscanf - formatted input conversion
SYNOPSIS
#include<stdio.h>
#include <widec.h>
int wsscanf(wchar_t *s, const char *format, /* pointer */ ... );
DESCRIPTION
The wsscanf() function reads Process Code characters from the Process Code string s, interprets them according to the format, and stores
the results in its arguments. It expects, as arguments, a control string format, and a set of pointer arguments indicating where the con-
verted input should be stored. The results are undefined if there are insufficient args for the format. If the format is exhausted while
args remain, the excess args are simply ignored.
The conversion specifications and behavior of wsscanf() are the same as the regular sscanf(3C) function except that the source is a Process
Code string for wsscanf() and on Extended Unix Code (EUC) character string for sscanf(3C).
RETURN VALUES
Upon successful completion, wsscanf() returns the number of characters matched. Otherwise, it returns a negative value.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO wsprintf(3C), printf(3C), scanf(3C), attributes(5)SunOS 5.10 29 Dec 1996 wsscanf(3C)
Check Out this Related Man Page
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 on 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.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
|ATTRIBUTE TYPE ATTRIBUTE VALUE |
|MT-Level MT-Safe |
+-----------------------------------------------------------+
SEE ALSO wsscanf(3C), printf(3C), scanf(3C), sprintf(3C), attributes(5)SunOS 5.11 29 Dec 1996 wsprintf(3C)
sscanf() is used in c for inmemory conversion. Is there any routine provided in c++ that allows us to perform the same task(i.e inmemory conversion) as performed by sscanf in c.
I f any one knows plz tell me about it. Thanks. (0 Replies)
I have a string
Form this string, I want to extract
I am unable to do that with sscanf because of the space between the words. What else can I use?
#include <stdio.h>
char buf_2;
int
main()
{
char *buf_1 = "\\\\?\\whats going on";
sscanf(buf_1,... (4 Replies)
what my code is doing, it is executing a sql file and the resullset of the query is getting stored in the text file in a fixed format. for that fixed format i have used the following code::
Code:
awk -F":"... (2 Replies)
sscanf does not stop at the first "&". How can I extract "doe" ?
char A = "name=john&last=doe&job=vacant&";
char B = "last";
char C = "";
char *POINTER = strstr(A, B);
sscanf(POINTER + strlen(B), "=%s%*", C);
printf("%s\n", C); // doe&job=vacant& (2 Replies)
ps -eo pid,ppid,uid,user,args
If i use above command on any of my sol boxes,i see that fifth column (args or COMMAND) is truncated.
Is there a way of getting full details in this column ,like we have in AIX?
Regards
Abhi (13 Replies)
How can I separetely extract the string and int after "dribble" ? (sscanf must limit TEXT to 9 chars to avoid buffer overflows.)
How come this code does not work with "dribbletext08" but does with "dribbletext05" ?
int main(void)
{
char TEXT = "";
int NUMBER = 0;
... (2 Replies)
I don't know how to do this:
printf("creazione nuovo messaggio\n");
printf("insert dest\n");
scanf("%s",dest);
printf("insert object\n");
scanf("%s",ogg);
printf("inserire text\n");
scanf("%s",test);
... (7 Replies)
We are in a conversion where a list of six digit numbers needs to be excluded from an existing report. As new ones are added we have an ever longer string of "grep -v" commands like:
grep -v 020516 | grep -v 020522 | grep -v 030132 | \
grep -v 030330 | grep -v 030357 | grep -v 050111 | \
... (7 Replies)
Hello, I have formatted lines delimited by colon ":", and I need to parse the line into two parts with sscanf() with format specifiers.
infile.txt:
Sample Name: sample1
SNPs : 91
MNPs : 1
Insertions : 5
Deletions ... (13 Replies)