RE: Calling sequence

1999-04-29 Thread Mullen, Patrick
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

RE: Calling sequence

1999-04-28 Thread Mullen, Patrick
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

sniffer and multiple ethernet devices

1999-04-26 Thread Mullen, Patrick
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

RE: strtok()

1999-03-29 Thread Mullen, Patrick
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

RE: libpcap

1999-03-12 Thread Mullen, Patrick
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

RE: exit() ...

1999-03-05 Thread Mullen, Patrick
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

RE: exit() ...

1999-03-05 Thread Mullen, Patrick
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

RE: (char*)Function

1999-02-23 Thread Mullen, Patrick
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-

Trapping ping requests

1999-01-18 Thread Mullen, Patrick
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

RE: Off topic: Remote administration of windows nt pc's

1998-11-25 Thread Mullen, Patrick
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,

Modem program - status and locks

1998-11-06 Thread Mullen, Patrick
[ 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

SPAM

1998-11-05 Thread Mullen, Patrick
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

RE: queestion

1998-08-04 Thread Mullen, Patrick
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

RE: ptrs to functions and void*

1998-06-24 Thread Mullen, Patrick
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

RE: ptrs to functions and void*

1998-06-23 Thread Mullen, Patrick
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 compiling WindowMaker-0.14.1

1998-05-07 Thread Mullen, Patrick
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