Search:

Type: Posts; User: matthew180

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    2,926

    Well, you can't argue with that. If you're...

    Well, you can't argue with that. If you're coding to learn or for fun then by all means try to work it out yourself. My days of coding for fun are few and far between. These days I want code that...
  2. Replies
    13
    Views
    2,926

    Well, I didn't expect him to *write* a...

    Well, I didn't expect him to *write* a Boyer-Moore search, but there are plenty of existing search functions, so I really don't understand why he *is* writing his own. Even if you are an experienced...
  3. Replies
    13
    Views
    2,926

    Not sure why you don't just use a regular search...

    Not sure why you don't just use a regular search algorithm? Like a Boyer-Moore? See my post in this thread: Binary Searching

    You should be able to use the code with a little tweaking.


    M@
  4. Replies
    16
    Views
    19,155

    Attached is an example that works with a memory...

    Attached is an example that works with a memory buffer or file. A couple of things:

    1. In one of your previous attempts you have an int assigned to the search string. The problem with this is...
  5. Replies
    7
    Views
    3,079

    Yup, that would be a good way to start. Your...

    Yup, that would be a good way to start. Your example also made me think a little more into the future with this "tool" and I'm coming up with things I totally forgot about. I'm going to shelve it...
  6. Replies
    7
    Views
    3,079

    I think I'm confusing the questions. Basically...

    I think I'm confusing the questions. Basically it goes like this:

    1. Lookup data exists in a flat binary file (can't do anything about this).
    2. Create a struct for source binary format.
    3....
  7. Replies
    10
    Views
    7,929

    Bwahahaha! Sorry, useless post, but that's...

    Bwahahaha! Sorry, useless post, but that's funny.

    M@

    P.S.
    Don't you wish you could do something cool with your name like that? ;-)

    Matt (Matthew) -> M@
    Nate (Nathan) -> N8
  8. Replies
    10
    Views
    7,929

    Heh, this is like the old SysOp debate. :-) As...

    Heh, this is like the old SysOp debate. :-)

    As has been pointed out, there are generally three ways:

    1. care
    2. char (like charred, cook, burned)
    3. car

    I found myself saying "car", then I...
  9. Replies
    7
    Views
    3,079

    Well, let me explain the situation, maybe there...

    Well, let me explain the situation, maybe there is a better way all together.

    First, the platform will not change, and I'm not worried about byte order. The files will be created and used on the...
  10. Replies
    7
    Views
    3,079

    Dynamic struct alignment?

    Greetings,

    How might you go about determining the alignment of a struct at runtime? I need to be able to read (at runtime) a struct definition, fill it with data, write it to a disk file - then...
  11. @salem I have done a basic benchmark. When I...

    @salem

    I have done a basic benchmark. When I started writing my code, before I had conversion logic, my program would read all the source files and write empty targets. I used this as a baseline...
  12. Threads to keep the CPU faster than the disk?

    Greetings,

    I'm currently writing a data conversion program and would like to get better performance. In case the environment matters: the programming language is straight C, Solaris 10, E25K with...
Results 1 to 12 of 12