Probably this is a repeated question. My knowledge in this is limited and i got confused on all those materials i got in google search.
We use #include <> to include a predefined library like stdio.h
i saw somewhere that #include "" includes a man made module(another C program). IS this possible?
Let me make this simple
I have two files, say parent.c and child.c
child.c contains function definitions which is called from parent.c
My code:
parent.c
child.c
What i need to do here is just display the menu on the screen.
Now how do I call this or include or link the two files ?
Hi,
I just tried to call a simple script from a pretty simple C program. I could not succeed :-( a message was thrown saying
"sh: line 1: "Script name with path": Permission denied"
The C program and shell script are below, both are in the same directory and shell script is given... (7 Replies)
hi,
i have a script.sh on my machine and it used in the system
but my question is how can i know the program called this script.sh??
i.e. from where it called and execute??
Many thanks (1 Reply)
Hi,
I have a K shell
a.ksh
function abc {
// Some logic
}
In
b.ksh
i have included the a.ksh
./a.ksh
I want to call the abc function from this b.ksh script.
Thanks
Vijay (2 Replies)
Hi all,
I need to call some script (s1) from within my shell script (s2). s1 accepts parameters and I want to feed it with values of params from my script. I tried many things but none work (I am so much of a beginner), please help
one of my attempts :
.
.
.
param1="hehe"
param2="haha"
... (12 Replies)
Can someone offer some technical advice concerning an call to a IBM U2 (Universe) program?
When I use the following script from a unix shell, it works fine:
$ " xxx.sh "
(contains the following --->)
1. cd /links/ACCOUNT1
2. /shapps/ibm/uv/bin/uv "COUNT FILE1" ... (2 Replies)
On bash I run precompiled c Program as follows:
./create_cust 1 10000 US S > us_cust.csv
create_cust is a c program and requires 4 parameters.
I am redirecting the output of this program to csv file
I need to run this same program in perl
I am aware of exec command though not... (7 Replies)
Hi,
I have a shell script which connects to a database and fetches the count of the records from a table. I want to embed this whole script in a C program. Also the count fetched should be available in the C program for further usage.
Please let me know how this can be done.
Thanks
... (0 Replies)
Hi,
I have a shell script which connects to a database and fetches the count of the records from a table. I want to embed this whole script in a C program. Also the count fetched should be available in the C program for further usage.
Please let me know how this can be done.
Thanks (9 Replies)
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Hi,
I am a newbie to linux programming. I have implemented msgqueue in C.
msgrcv() call at the client end is as below:
msgrcv( msgqid, msgptr, msgsize, msgtype, 0 );
My program works fine when msgrcv () from /lib/libc.so.6 is called.
However it crashes when __libc_msgrcv() is called.
... (3 Replies)
Discussion started by: praasanna
3 Replies
LEARN ABOUT CENTOS
xmcreatepopupmenu
XmCreatePopupMenu(library call) XmCreatePopupMenu(library call)
NAME
XmCreatePopupMenu -- A RowColumn widget convenience creation function
SYNOPSIS
#include <Xm/RowColumn.h>
Widget XmCreatePopupMenu(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
DESCRIPTION
XmCreatePopupMenu creates an instance of a RowColumn widget of type XmMENU_POPUP and returns the associated widget ID. When this function
is used to create the Popup menu pane, a MenuShell widget is automatically created as the parent of the menu pane. The parent of the
MenuShell widget is the widget indicated by the parent parameter.
XmCreatePopupMenu is provided as a convenience function for creating RowColumn widgets configured to operate as Popup menu panes and is not
implemented as a separate widget class.
The PopupMenu is used as the first menu pane within a PopupMenu system; all other menu panes are of the Pulldown type. A Popup menu pane
displays a 3-D shadow, unless the feature is disabled by the application. The shadow appears around the edge of the menu pane.
The Popup menu pane must be created as the child of a MenuShell widget in order to function properly when it is incorporated into a menu.
If the application uses this convenience function for creating a Popup menu pane, the MenuShell is automatically created as the real parent
of the menu pane. If the application does not use this convenience function to create the RowColumn to function as a Popup menu pane, it
is the application's responsibility to create the MenuShell widget.
To access the PopupMenu, the application must first position the widget using the XmMenuPosition function and then manage it using XtMan-
ageChild.
parent Specifies the parent widget ID
name Specifies the name of the created widget
arglist Specifies the argument list
argcount Specifies the number of attribute/value pairs in the argument list (arglist)
Popup menu panes support tear-off capabilities for tear-off menus through XmRowColumn resources. For a complete definition of RowColumn
and its associated resources, see XmRowColumn(3).
RETURN
Returns the RowColumn widget ID.
RELATED XmCreateSimplePopupMenu(3), XmMenuPosition(3), XmMenuShell(3), XmRowColumn(3), and XmVaCreateSimplePopupMenu(3).
XmCreatePopupMenu(library call)