From: Dave H. <da...@mi...> - 2000-02-19 17:33:25
|
Right, let's have another go! The printer list *is* sorted (in "output_to" order, i.e. sorted on the lp/lpr command!) because there is a call to qsort() in get_system_printers(), *but* the File printer is not sorted in the list, it always appears first. So, my previous fix broke things by trying to bsearch() a list that was nearly sorted! It worked for me because all my printers are lower case names, so "File" was still found first. I have now put the bsearch() call back the way it was, but checked for the "File" printer explicitly first! Dave -- Dave Hill, Kempston, Bedford UK da...@mi... Sicth munce ago, I cutn't evun spel enjuneer, and now I are one! |