ossp-pkg/rc/rc_util.c 1.5 -> 1.6
--- rc_util.c 2002/07/29 15:07:01 1.5
+++ rc_util.c 2003/05/15 12:49:11 1.6
@@ -77,6 +77,18 @@
return(NULL); /* Failure */
}
+/* Vector counter */
+short vectorCount(const char **pszVec)
+{
+ int i = 0;
+ assert(pszVec); /* Check for unallocated incoming */
+
+ while (pszVec[i]) /* Loop through elements, */
+ i++; /* and count them here */
+
+ return(i);
+}
+
/* Vector destructor */
rc_return_t vectorDel(char **pszVec)
{
|
|