summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-09 08:55:14 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-09 08:55:14 +0000
commit823f4ba7b069bc2f4712e562cefc3759189e7772 (patch)
tree15151745b0a2ce0a2621970a8ab30831db6b8cc7
parentb540a2898ed9feb95b40e4c35ab3789fb7871b86 (diff)
Add ffs func declaration
-Erik
-rw-r--r--include/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index dcdd24fb0..7d284e5d6 100644
--- a/include/string.h
+++ b/include/string.h
@@ -66,6 +66,10 @@ extern __ptr_t memmove __P ((__ptr_t __dest, __const __ptr_t __src,
#define index strchr
#define rindex strrchr
+/* Return the position of the first bit set in I, or 0 if none are set.
+ The least-significant bit is position 1, the most-significant 32. */
+extern int ffs __P ((int __i)) __attribute__ ((const));
+
/* Other common BSD functions */
/* Set N bytes of S to 0. */
extern void bzero __P ((__ptr_t __s, size_t __n));