From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,60e44b958b2b4eda,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-18 13:18:28 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!toads.pgh.pa.us!news.sei.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!mcinerny+ From: "Michael J. McInerny" Newsgroups: comp.sys.dec Subject: int ffs(long) OSF/1 v2.0 Date: Mon, 18 Jul 1994 15:49:57 -0400 Organization: Sponsored account, Philosophy, Carnegie Mellon, Pittsburgh, PA Message-ID: NNTP-Posting-Host: po6.andrew.cmu.edu [please feel free to correct me on my choice of newsgroup...] Can someone give me the skinny on the ffs() function? It's documented on the bzero()/bcopy() man page as taking an int, which is 32-bits on DEC OSF/1 v2.0 alpha-AXP. However, there is a ``int ffs(long)'' declaration in string.h. Which is it, int or long? Is there any way to tell how a function is declared in libc.a? Furthermore, given that most systems (include DEC OSF/1 v1.x!) don't have a declaration for ffs(), what should I do to make my code portable with respect to declaring ffs()? Is there a standard/portable replacement for ffs()? -Michael McInerny, CLARITECH Corp.