static char rcsid[] = "@(#)$Id: reverse.c,v 1.5 2006/04/09 07:37:05 hurtta Exp $";
/******************************************************************************
* The Elm (ME+) Mail System - $Revision: 1.5 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@posti.FMI.FI>
* (was hurtta+elm@ozone.FMI.FI)
******************************************************************************
* The Elm Mail System
*
* Copyright (c) 1988-1992 USENET Community Trust
* Copyright (c) 1986,1987 Dave Taylor
*****************************************************************************/
#include "headers.h"
void reverse(string)
char *string;
{
/** reverse string... pretty trivial routine, actually! **/
register char *head, *tail, c;
for (head = string, tail = string + strlen(string) - 1;
head < tail;
head++, tail--) {
c = *head;
*head = *tail;
*tail = c;
}
}
/*
* Local Variables:
* mode:c
* c-basic-offset:4
* buffer-file-coding-system: iso-8859-1
* End:
*/
syntax highlighted by Code2HTML, v. 0.9.1