home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / strnull.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-19  |  411 b   |  25 lines

  1. #ifndef    NO_IDENT
  2. static    char    *Id = "$Id: strnull.c,v 1.3 1995/02/19 18:33:17 tom Exp $";
  3. #endif
  4.  
  5. /*
  6.  * Title:    strnull
  7.  * Author:    Thomas E. Dickey
  8.  * Created:    03 Aug 1983
  9.  * Last update:
  10.  *        19 Feb 1995, prototyped
  11.  *
  12.  * Function:    Return a pointer to the null which ends (by convention) a
  13.  *        character string.
  14.  */
  15.  
  16. #include    "strutils.h"
  17.  
  18. char *
  19. strnull (char *cptr)
  20. {
  21.     while (*cptr)
  22.         cptr++;
  23.     return (cptr);
  24. }
  25.