1: /* $Header$ */ 2: 3: /* 4: * Author: Peter J. Nicklin 5: */ 6: 7: /* 8: * pblenfield() returns length of field pointed to by buffer pointer bp. 9: */ 10: #include "pdbuf.h" 11: 12: pblenfield(bp) 13: register char *bp; /* buffer pointer */ 14: { 15: register int n; /* length counter */ 16: 17: for (n = 0; *bp != _PBFS && *bp != '\0'; bp++, n++) 18: continue; 19: return(n); 20: }