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...
Type: Posts; User: matthew180
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...
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...
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@
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...
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...
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....
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
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...
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...
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...
@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...
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...