I'm new to C. I need to covert certain values using C. please see the below. I have figured out the logic to do it. Please provide some hints to do this with C
Logic:
If first position of POS = 0, shift POS to the left one byte.
If third position of POS = 0, move spaces to third position of POS
If third position of POS = 5, change third position of POS to two positions of ".5"
i want to split a big line based on the position.
example :
I have a single line which has 2300 characters.
i want to split from 1 character to 300th characters as first line
and 301th to 600 as second line and 601th to 900 as third line ...till the end of the string.
Can anyone help... (1 Reply)
Hi,
I have a file like below:
ABC,1001,DEFG,40000
AVD,2002,FGRG,3000
DBF,2002,HDGD,3454
GDF,4564,GRTR,5656
GDF,4659,GGTD,10002
....
.....
I have to get all the lines which contains 2002 and 4659 at the second position. Please help.
The output file will be like:
... (9 Replies)
Hi,
I have a file with data like below
a}hasksd09090}kdkdkd
aksdkdkdk787}08ksapodd
asl}alks13233}dsjskdkd
I need to replace any '}' to 0 if it appears in 10 to 15 postions.If } appears in any other postion I need to leave it.
So for the above data , output should be
a}hasksd090900kdkdkd... (1 Reply)
Please help
Need a script which will do the following :
Search on fixed width file , go to position (25,2) which means 25th and 26th position, Find if there are any char in lower case:
For example 25,2 can be (9T) or (9w) or (Ww) or (wW)....The two positions can be numeric or alpha...no... (13 Replies)
Dear Guyz:)
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Trying to use sed - but having no luck.
I have a text file - I want to replace whatever character is in position 106, 157 and 237 w/ the string "xxx". Want this change for all lines w/in that text file.
I'm open to using awk or whatever command would be best for replacing characters based... (5 Replies)
Hi All,
I need help for doing the following.
I have a input file like:
aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb
now I am trying to generate a output csv file where i will have for e.g.
0-3 chars of each line as the first column in the csv, 4-10 chars of the line as... (3 Replies)
Hello,
I need some sort of way to extract every date contained in a file, and count how many of those dates there are.
Here are the specifics:
The date format I'm looking for is mm/dd/yyyy
I only need to look after line 45 in the file (that's where the data begins)
The columns of... (2 Replies)
I have a list of columns with values that I need to transform into a row containing the range of each column. For example:
"Column A"
1
2
3
4
10
12
14
15
16
17
18
"Column B"
1
4
5
6 (4 Replies)
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
LEARN ABOUT ULTRIX
xgetnormalhints
XSetNormalHints(3X11)XSetNormalHints(3X11)Name
XSetNormalHints, XGetNormalHints - set or get normal state hints
Syntax
XSetNormalHints(display, w, hints)
Display *display;
Window w;
XSizeHints *hints;
Status XGetNormalHints(display, w, hints_return)
Display *display;
Window w;
XSizeHints *hints_return;
Arguments
display Specifies the connection to the X server.
hints Specifies a pointer to the size hints for the window in its normal state.
hints_return
Returns the size hints for the window in its normal state.
w Specifies the window.
Description
The function sets the size hints structure for the specified window. Applications use to inform the window manager of the size or position
desirable for that window. In addition, an application that wants to move or resize itself should call and specify its new desired loca-
tion and size as well as making direct Xlib calls to move or resize. This is because window managers may ignore redirected configure
requests, but they pay attention to property changes.
To set size hints, an application not only must assign values to the appropriate members in the hints structure but also must set the flags
member of the structure to indicate which information is present and where it came from. A call to is meaningless, unless the flags member
is set to indicate which members of the structure have been assigned values.
can generate and errors.
The function returns the size hints for a window in its normal state. It returns a nonzero status if it succeeds or zero if the applica-
tion specified no normal size hints for this window.
can generate a error.
Property
WM_NORMAL_HINTS
Diagnostics
The server failed to allocate the requested resource or server memory.
A value for a Window argument does not name a defined Window.
See AlsoXSetCommand(3X11), XSetIconName(3X11), XSetIconSizeHints(3X11), XSetSizeHints(3X11), XSetStandardProperties(3X11), XSetWMHints(3X11), XSet-
ZoomHints(3X11), XStoreName(3X11)
Guide to the Xlib Library
XSetNormalHints(3X11)