home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / actlib12.zip / STRINGS.ZIP / END.C < prev    next >
C/C++ Source or Header  |  1993-02-25  |  605b  |  28 lines

  1. /*  Copyright (C) 1993   Marc Stern  (internet: stern@mble.philips.be)  */
  2.  
  3. #include "strings.h"
  4.  
  5. /***
  6.  *  Function    :  strend
  7.  *
  8.  *  Description :  Returns a pointer to the '\0' ending a string
  9.  *
  10.  *  Parameters  :  in   char        *in_str      in string
  11.  *
  12.  *  Return code :   pointer to the '\0' ending the string..
  13.  *
  14.  *  OS/Compiler :   All
  15.  ***/
  16.     
  17. char *strend( const char *in_str )
  18.  
  19. {
  20. #if 0
  21.   while ( *in_str ++ );
  22.   in_str --;
  23.   return in_str;
  24. #endif
  25.   /* Should be quicker with built-in Run-Time Library (if well optimized) */
  26.   return in_str + strlen(in_str);
  27. }
  28.