Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wsscanf(3c) [sunos man page]

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)
Man Page

11 More Discussions You Might Find Interesting

1. Programming

inmemory conversion equivalent in c++

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)
Discussion started by: kinnaree
0 Replies

2. Programming

sscanf function is failing

Please delete this thread. (0 Replies)
Discussion started by: jxh461
0 Replies

3. Programming

sscanf !!

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)
Discussion started by: the_learner
4 Replies

4. Solaris

removing special characters, white spaces from a field in a file

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)
Discussion started by: priyanka3006
2 Replies

5. Programming

Help with sscanf

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)
Discussion started by: limmer
2 Replies

6. Solaris

"Processes" truncated on Solaris

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)
Discussion started by: ak835
13 Replies

7. Programming

using sscanf

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)
Discussion started by: cyler
2 Replies

8. Programming

Better than scanf

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)
Discussion started by: italian_boy
7 Replies

9. Shell Programming and Scripting

awk to get lowest & store value from another file...

I have two files. One small stores and one with large stores like below... Small-stores.txt Store Code Excess Stock K76 23812 17 K50 23812 6 K16 23812 4 K22 23812 3 K69 23812 3 K76 23813 10 K50 23813 7 K16 23813 6 K69 23813 4 K22 23813 3 K69 23814 10 K76 23814 6 K16 23814 4... (1 Reply)
Discussion started by: malcomex999
1 Replies

10. Shell Programming and Scripting

String of exclusions failed.

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)
Discussion started by: wbport
7 Replies

11. Programming

Format specifier for sscanf() in C

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)
Discussion started by: yifangt
13 Replies