Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

ODStr.c 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* OpenDoors Online Software Programming Toolkit
 * (C) Copyright 1991 - 1999 by Brian Pirie.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
Deucе's avatar
Deucе committed
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 18 19 20 21 22 23 24 25 26 27
 *
 *
 *        File: ODStr.c
 *
 * Description: Functions used to mainuplate strings
 *
 *   Revisions: Date          Ver   Who  Change
 *              ---------------------------------------------------------------
 *              Aug 10, 2003  6.23  SH   *nix support
 */

28
#include <ctype.h>
29 30 31 32 33
#include "OpenDoor.h"

#ifdef ODPLAT_NIX
#include <string.h>

34 35
char *
od_strlwr(char *str)
36
{
37 38 39 40 41 42
	char	*p;
	
	for(p=str;*p;p++) 
		*p=tolower(*p);

	return(str);
43 44
}

45 46
char *
od_strupr(char *str)
47
{
48 49 50 51 52 53
	char	*p;
	
	for(p=str;*p;p++) 
		*p=toupper(*p);

	return(str);
54 55
}
#endif