compare strings, strcmp

Jimmy Li jimli at blake.acs.washington.edu
Thu Nov 16 08:00:55 AEST 1989


I wanted to know what is the best way to compare two strings?
For example, I have the following decl.

char array[10000][200];

What is the fastest way to sort this array? (I heard that 'strcmp' is slow
if the strings are long. Why?)

Thanks a lot.



More information about the Comp.lang.c mailing list