Please explain from where or how you get xlen and ylen.
Do you make a complete pass through the string looking for a NULL character?If
you do, then you are going to check your string once for the length, and once
for the matching.
Your algorithm is valuable to you, but not efficient.
Regards
Even if you inline your code, (previous examples) I don't think any of the
functions presented is faster than memcmp() from the standard C library.
Earlier email I presented a challenge for searching a table containing a large
number of strings. I indicated that class of problem brings about it
Hi Jack
I read your response below, and found it very informative. As I responded to
the original posting, anger is not going to get the message through.
I am far from a Linux expert, I am an end-user, a programmer in C. You brought
up some important considerations... Sys V has its shortcom
I am a casual Debian user and a person who has 50 years in IT. My first
comment is that the direction that other Linux distributions are taking is not
the system V direction. I am not a Linux Internals person, but there are many
who are. The consensus is that systemd is better and the right
4 matches
Mail list logo