home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / elm-2.4-pl20.tar.Z / elm-2.4-pl20.tar / lib / move_left.c < prev    next >
C/C++ Source or Header  |  1992-10-03  |  1KB  |  44 lines

  1. static char rcsid[] = "@(#)$Id: move_left.c,v 5.1 1992/10/03 22:41:36 syd Exp $";
  2.  
  3. /*******************************************************************************
  4.  *  The Elm Mail System  -  $Revision: 5.1 $   $State: Exp $
  5.  *
  6.  *            Copyright (c) 1988-1992 USENET Community Trust
  7.  *            Copyright (c) 1986,1987 Dave Taylor
  8.  *******************************************************************************
  9.  * Bug reports, patches, comments, suggestions should be sent to:
  10.  *
  11.  *    Syd Weinstein, Elm Coordinator
  12.  *    elm@DSI.COM            dsinc!elm
  13.  *
  14.  *******************************************************************************
  15.  * $Log: move_left.c,v $
  16.  * Revision 5.1  1992/10/03  22:41:36  syd
  17.  * Initial checkin as of 2.4 Release at PL0
  18.  *
  19.  *
  20.  ******************************************************************************/
  21.  
  22. /** 
  23.  
  24. **/
  25.  
  26. #include "headers.h"
  27.  
  28.  
  29. move_left(string, chars)
  30. char *string;
  31. int  chars;
  32. {
  33.     /** moves string chars characters to the left DESTRUCTIVELY **/
  34.  
  35.     register char *source, *destination;
  36.  
  37.     source = string + chars;
  38.     destination = string;
  39.     while (*source != '\0' && *source != '\n')
  40.         *destination++ = *source++;
  41.  
  42.     *destination = '\0';
  43. }
  44.