Yeah, I asked a few professors here at school about it and
they said that
it's a fundamentaly undefined statement.
Also, I've been meaning to ask you what the perl script at
the bottom of
your emails does.
I beleive statements with multiple side effects are
undefined in ISO C
Very interesting problem, and a more complete
answer would be j = 6, i = 4, and this is why:
i = 2;
j = i++ + ++i;
Obviously, the j line is more interesting, so
we'll talk about sequence of operations. The
preincrement operator is done before everything
else, so "++i" is done, giving i the
I am writing an ethernet sniffer and am trying to use it on a machine
which has two ethernet adapters. Why is it that when I run the
program on eth0, I get traffic from both eth0 and eth1? When I
look at ifconfig, it shows eth0 as being in promiscuous mode and
eth1 as not being in promiscuous
For those who don't know, strtok() is listed as a "don't
use this function" in most documentation because it
modifies the input string. Horribly. After using
strtok() the original string is no longer usable because
strtok() inserts NULL terminators into the original
string at the end of each
Totally without any knowledge in this subject, I
will assume that `make install` did what makes
sense, which is to copy the header files somewhere
into /usr/include, probably off of a subdirectory.
Unless their `make install` script is broken, you
shouldn't have had to copy any header files
I've noticed that exit() can take a parameter. I've seen
exit(0), exit(1),
exit(2) and even exit(10). What does the parameter mean ? I
can't find any
table with its possible values ...
exit() can have any value you want. By convention,
exit(0) (same as exit()) means your program
Hm.
Sure about this, Patrick?
Gee. Thanks for the wonderfully informative flame.
Your message gives absolutely no indication of what
you're questioning, but yes, I am sure that exit(int)
returns a value to the calling program. By
convention exit() called with a non-zero parameter
You create a pointer, allocate memory to that pointer,
set the data, then return the pointer. The pointer
itself loses scope and is lost, but the memory allocated
remains. You then have to make sure a function somewhere
else frees the memory allocated.
~Patrick
-Original Message-
I was thinking of writing a program which trapped ping requests,
prompted the user (who would have to have superuser privs, of
course) if they want to allow pings from the requesting host,
and then respond if allowed and add the host to the "allowed
hosts" list for future reference.
Has this
Doesn't Back Orifice do this? :-)
http://www.cultdeadcow.com
~Patrick
-Original Message-
From: Craig Furter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 25, 1998 5:33 AM
To: Linux-C-Programming
Subject: Off topic: Remote administration of windows nt pc's
Hi all,
[ Look! A post about programming! ;-) ]
I am writing a modem program, and was hoping you would be able to help.
This is a recurring theme, but I finally have a good start on both
the modem I/O and the surrounding logic (Finally!!).
The simplest way to explain my situation is that I need a
I suppose it would be too much to ask to have
"TCFG" put into a filter at the listserver?
I'm growing tired of complaining to every one
of this jerk's 20 ISPs.
I've noticed there is no traffic but this SPAM
nowadays. Does this mean that I'm the one last
subscriber who hasn't fled from this
Wow. I think you need to slow down a bit. That's a
big chunk to take for "RHL Linux User". :-) BTW, to
put a personalized name for mail, etc., edit /etc/passwd.
Kernel compilation is described in the kernel-HOWTO.
Check the Linux Documentation Project -
[http://sunsite.unc.edu/LDP]. There
From: Glynn Clements
Sent: Tuesday, June 23, 1998 11:39 PM
Subject: RE: ptrs to functions and void*
Mullen, Patrick wrote:
There's really not much to either topic.
The one hard part about pointers to functions
is to remember to put parentesis around
There's really not much to either topic.
The one hard part about pointers to functions
is to remember to put parentesis around the
* and the function name.
void (*funcpoint)();
void func() { printf("Hello\n"); }
funcpoint = func; /* Notice no parenthesis! */
(*funcpoint)(); /* "Hello\n" is
errors full_errors
Errors contains stderr, full_errors contains both
stout and stderr (21)
In short, it can't find pl_line_count, yy_scan_string,
yy_delete_buffer, yyparse, or yyerror. What am I
missing? I had to install bison and flex to get the
./Install script to work, but these look
16 matches
Mail list logo