Cool - thanks. I'll have to back and re-read my code with that in mind.
Type: Posts; User: maestro371
Cool - thanks. I'll have to back and re-read my code with that in mind.
Does this differ in C (vs. C++)? I could swear that I've had problems in C where I've passed a pointer, to a variable not defined as a global variable, to another method and it's caused...
I have a question on this that maybe you can settle once and for all. Isn't this code (from that FAQ) problematic in that "MyInt" is not defined as a global variable?
void foo(int* MyInt)
{...
Got it. Thanks for the correction.
Great! Thanks for the tip; if I understand correctly, numbers 0x80 and greater (> 127 decimal) extend beyond the boundary of a short int and cause the compiler to use a standard int (32 bits)...
Okay, I think I have a fairly sustainable solution without using the REG_PEND. After you tipped me off on the null issue, I decided to try altering the null characters in a predictable way before...
I started just tweaking your code a bit to remove the parts that made Linux stumble and appear to have made it work, although I'm still investigating the ramifications. Here's what I changed:
1. ...
It looks like I might have to switch my development to a BSD variant. I've been working on Ubuntu (Gutsy) Linux and Debian (Etch). The REG_PEND, re_endp, and REG_ITOA elements all seem to be...
There are a number of elements here that are new to me; I'll have to spend some time digging through the regex structures and functions a bit more to fully grasp it.
Thanks for taking the time to...
I think you may have too many "foo"s:
typedef struct foo {
int test;
char b;
} foo;
I'm pretty new to C programming (about two weeks), but I think you're defining your structure wrong. Perhaps it should be (I'll use typedef because I get annoyed typing struct):
typedef...
Hi there,
I'm trying to match a portion of a network packet (captured with libpcap) using RegEx. In this case, I want to identify if the packet is a DNS packet. Here is an example trace that I...