home *** CD-ROM | disk | FTP | other *** search
- /* ==( bench/fstrlen.c )== */
-
- /* ----------------------------------------------- */
- /* Pro-C Copyright (C) 1988 - 1990 Vestronix Inc. */
- /* Modification to this source is not supported */
- /* by Vestronix Inc. */
- /* All Rights Reserved */
- /* ----------------------------------------------- */
- /* Written Nig 1-Jan-87 */
- /* Modified Geo 11-Dec-89 See comments below */
- /* ----------------------------------------------- */
- /* %W% (%H% %T%) */
-
- /*
- * Modifications
- *
- * 11-Dec-89 Geo - V2 version
- * 25-Oct-89 Geo - 1.32 Merge
- */
-
- /* This routine is used to find the length of a field */
-
- # include <stdio.h>
- # include <bench.h>
-
- fstrlen(src, dlen)
- char *src;
- int dlen;
- {
- char *p = src;
-
- if ( p != NULL)
- while( dlen-- && *p )
- p++;
-
- return ( (int) (p - src) );
- }
-
-