Search:

Type: Posts; User: maestro371

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,590

    Cool - thanks. I'll have to back and re-read my...

    Cool - thanks. I'll have to back and re-read my code with that in mind.
  2. Replies
    10
    Views
    1,590

    Does this differ in C (vs. C++)? I could swear...

    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...
  3. Replies
    10
    Views
    1,590

    I have a question on this that maybe you can...

    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)
    {...
  4. Replies
    10
    Views
    6,025

    Got it. Thanks for the correction.

    Got it. Thanks for the correction.
  5. Replies
    10
    Views
    6,025

    Great! Thanks for the tip; if I understand...

    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)...
  6. Replies
    10
    Views
    6,025

    Okay, I think I have a fairly sustainable...

    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...
  7. Replies
    10
    Views
    6,025

    Slight Alterations

    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. ...
  8. Replies
    10
    Views
    6,025

    It looks like I might have to switch my...

    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...
  9. Replies
    10
    Views
    6,025

    Fantastic

    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...
  10. Replies
    2
    Views
    2,887

    Struct Definition

    I think you may have too many "foo"s:



    typedef struct foo {
    int test;
    char b;
    } foo;
  11. Replies
    2
    Views
    1,144

    Hmmm

    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...
  12. Replies
    10
    Views
    6,025

    Hexadecimal Characters in RegEx

    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...
Results 1 to 12 of 12