The error comes from the fact that cpp included stdio.h which automatically brings a function prototype for sscanf into the file the compiler sees.
Suggestions:
1. Park your sscanf() module in a separate source file and place every module that calls your sscanf() in that same separate file. In the same file, declare any other function from stdio.h as extern. If you have only one source file, remove stdio.h from the include list and declare everything as extern. You could also make a LOCAL copy of stdio.h and remove references to sscanf from it, rename it, then
2. Rename your sscanf() as mysscanf()
I am having this problem......when I run this script:
print -n "Enter file name to be deleted: "
read answer
if
then
rm $name
else
echo "No such file with the name: $name exists"
fi
I was trying to test my script for errors, and basically when the user had files with the rights: 400,... (1 Reply)
Hi
My computer of late started misbehaving. Whenever I switch it on
It say Override and then it takes long to boot. Surprising is that it opens excel automatic. What could be that? (1 Reply)
hi all ,
iam trying to telnet to a remote system (A) that is 2 routers away ,
the problem is that when i telnet to the system my IP is changed due to natting b/w the 2 networks .
i want to do a remote backup of the system (A) from a server (B), using the following script :
#!... (9 Replies)
When the aix date function is called by a routine, is the date function 'aware' of the name of the routine that is calling it, such that if we had the source code of the date function, we could modify it so that it provides a date to the caller depending upon the identity of the calling routine.... (1 Reply)
I would like to override the default profile which is loaded when the system starts or When I run a program so that profile should get loaded in the settings.
Is there any system call to do so.
. (0 Replies)
Hi,
I'm trying to figure out the logic of my user shell and root shell :confused:
This might be best illustrated with an example.
If I log into the linux host I'm using and run the following:
-bash-3.2$ which python
/usr/local/bin/python
I now run sudo bash to become root and run the... (2 Replies)
Hi pls help me out to short out this problem
rm PAB113_011.out
rm: PAB113_011.out: override protection 644 (yes/no)? n
If i give y it remove the file.
But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (9 Replies)
story is i accidentally saved when i intended to quit. the 'w' and 'q' is button too close, so i pressed the wrong one. now, i saved changes that i don't remember all over this lengthy script. (1 Reply)
Hi,
When I login to my HP-UX and fire the "set" command I see that the weblogic 9.2 classpath is already set.
However, I wish to override the classpath to weblogic version 10.3
I have a script call setWLSEnv.sh that has the desired classpath.
Thus, in my unix script i write
.... (6 Replies)
Hello ,
I have to override the last line of a text file in unix
I know one way is to delete and insert however I am looking for a one liner.
Could anyone help me to write it?
below is the code I have come up with
sed '$d' /ParmFiles/test2_parm.dat>/ParmFiles/temp_pra.dat;
cat... (1 Reply)
Discussion started by: Pratik4891
1 Replies
LEARN ABOUT SUNOS
wsscanf
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)