Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Michael J. McInerny" <mcinerny+@andrew.cmu.edu>
Subject: int ffs(long) OSF/1 v2.0
Date: Mon, 18 Jul 1994 15:49:57 -0400	[thread overview]
Message-ID: <wi_hnZm00WB=QZnc8e@andrew.cmu.edu> (raw)

[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.


                 reply	other threads:[~1994-07-18 19:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox