I receive an integer as argument for a function.
within function definition i want it to be of type struct tm.
eg..
main()
{
int a;
......
}
function(...,..,a,..)
int a;
{
struct tm tm;
if(!a)
^ time(&a);
^ ... (4 Replies)
I have a struct as follows...
struct A
{
int a;
ucontext_t X; //ucontext_t is another structure
}
How do I define a pointer to the above structure variable X of the type ucontext_t from within another function?
eg. void foo()
{
struct A a;
/////WHAT COMES IN... (1 Reply)
need a little help with a few tid bits. I wrote a script that checks the resoluion of image files and writes them out to a file then sorts the resolutions by largets Width. Then take the sorted files information and toss all the 835 widths into a seperate file. Ignore the redundancies its a... (1 Reply)
Good morning,
I have a server with solaris 10 that I want to intall remote printers.
I started lpsched deamon without problems with command:
svcadm enable application/print/server
I want to install printers that are defined locally on print server, so:
lpadmin -p <device> -s <print... (2 Replies)
iam trying to built a firewall.so i have used netfilter for it.
in function main_hook sock_buff is returning null and in my log file continuously "sock buff null" is printed plse help to solve this problem..
(using print_string iam printing strings on current terminal (terminal we ping))
... (1 Reply)
Hi folks,
I'm trying to define the following command as alias in .cshrc file:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs
I defined it as the following:
alias nirdirs '`ls -ltr | grep "^d" | awk "{print \\$9}" | xargs du -hs`'
I've got the following error when I've run the alias:... (7 Replies)
Can someone tell me how to do this?
Just a thought that entered my mind when learning about structs.
First thought was:
struct one
{
struct two;
}
struct two
{
three;
}
one->two->three
would this be how you would access "three"? (1 Reply)
Hi,
I found on linuxgazette.net/93/bhaskaran.html page very useful sample of virtual driver (not connected to real hardware).
I try to compile it with no effect.
So:
I got fresh Ubuntu 9.10 (kernel 2.6.31-14)
My source is saved in networkAdapter.c file in /usr/src/myModules directory.
I... (21 Replies)
Hi,
I have received an application that stores some properties in a file. The existing struct looks like this:
struct TData
{
UINT uSizeIncludingStrings;
// copy of Telnet data struct
UINT uSize;
// basic properties:
TCHAR szHost; //defined in Sshconfig
UINT iPortNr;
TCHAR... (2 Replies)
Hi
I'd say I'm having this weird problem where my script isn't taking the value off a variable or printing it. My code is like this:
set count_C= `grep -c C mols`
set count_H= `grep -c H mols`
set count_O= `grep -c O mols`
sed -i '7,7 s/$/ $count_C $count_O $count_H/g' input It... (8 Replies)
Discussion started by: saleheen
8 Replies
LEARN ABOUT REDHAT
xtsettypeconverter
XtAppSetTypeConverter(3Xt) XT FUNCTIONS XtAppSetTypeConverter(3Xt)NAME
XtAppSetTypeConverter, XtSetTypeConverter - register resource converter
SYNTAX
void XtAppSetTypeConverter(app_context, from_type, to_type, converter, convert_args, num_args, cache_type, destructor)
XtAppContext app_context;
String from_type;
String to_type;
XtConverter converter;
XtConvertArgList convert_args;
Cardinal num_args;
XtCacheType cache_type;
XtDestructor destructor;
void XtSetTypeConverter(from_type, to_type, converter, convert_args, num_args, cache_type, destructor)
String from_type;
String to_type;
XtConverter converter;
XtConvertArgList convert_args;
Cardinal num_args;
XtCacheType cache_type;
XtDestructor destructor;
ARGUMENTS
app_context
Specifies the application context.
converter Specifies the type converter procedure.
convert_args
Specifies how to compute the additional arguments to the converter or NULL.
from_type Specifies the source type.
num_args Specifies the number of additional arguments to the converter or zero.
to_type Specifies the destination type.
cache_type
Specifies whether or not resources produced by this converter are sharable or display-specific and when they should be freed.
destructor
Specifies a destroy procedure for resources produced by this conversion, or NULL if no addional action is required to deallocate
resources produced by the converter.
DESCRIPTION
XtSetTypeConverter registers the specified type converter and destructor in all application contexts created by the calling process,
including any future application contexts that may be created. XtAppSetTypeConverter registers the specified type converter in the single
application context specified. If the same from_type and to_type are specified in multiple calls to either function, the most recent over-
rides the previous ones.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 Release 6.6 XtAppSetTypeConverter(3Xt)