Path: utzoo!attcan!uunet!mcsun!hp4nl!ruuinf!prisma!fred From: fred@prisma.cv.ruu.nl (Fred Appelman) Newsgroups: comp.sys.hp Subject: Re: BSD rindex, etc. Message-ID: Date: 27 Sep 90 08:04:07 GMT References: <8155@milton.u.washington.edu> Organization: University of Utrecht, 3D Computer Vision The Netherlands Lines: 25 In <8155@milton.u.washington.edu> jdunlap@milton.u.washington.edu (John Dunlap) writes: >Some time ago, I recall a discussion about the BSD string functions >being available in HP-UX. I am looking for rindex and strings.h >among other things. I would like to have easier porting of BSD >applications to HP-UX. Are the only function you need, the functions rindex and index? If so, you can create your 'own' strings.h file, with the following defintions: #define index strchr #define rindex strrchr In the file /usr/lib/libBSD.a there is a file which contains 'index.o'. This object file also contains defintions of the functions index and rindex. To my knowledge there is no include file which defines index and rindex. -- Fred J.R. Appelman, 3D Computer Vision, Utrecht University AZU, Heidelberglaan 100, 3584 CX Utrecht, The Netherlands. Telephone: +31-30-506710 Fax: +31-30-513399 e-mail: fred@cv.ruu.nl or appelman@cs.unc.edu