Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: String Fanaticism Message-ID: <7697@brl-smoke.ARPA> Date: 15 Apr 88 21:41:20 GMT References: <77200033@uiucdcsp> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <77200033@uiucdcsp> gillies@uiucdcsp.cs.uiuc.edu writes: >Given a choice, I'd make STRSPN, STRCSPN, STRPBRK, STRRPBRK, STRTOK, >and STRSTR bite the dust. C has switch statements and pointers in the >language to accomplish these things efficiently. Ok, show me how you can use switch statements and pointers to implement strstr() efficiently. The majority of the str*() functions have been in use for 10 years or more in a vast number of applications. Apparently you think each application should have to reinvent these particular wheels. What do you think libraries are for?