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

Commit 2a6799b6 authored by deuce's avatar deuce

Renamed strupr() and strlwr() with od_ prefix.

Made them not insane.
parent bc6769de
......@@ -25,30 +25,31 @@
* Aug 10, 2003 6.23 SH *nix support
*/
#include <ctype.h>
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#include <string.h>
int
strlwr(char *str)
char *
od_strlwr(char *str)
{
size_t i;
for(i=0;i<strlen(str);i++)
{
if(str[i]>64 && str[i]<=91) str[i]=str[i]|32;
}
return 0;
char *p;
for(p=str;*p;p++)
*p=tolower(*p);
return(str);
}
int
strupr(char *str)
char *
od_strupr(char *str)
{
size_t i;
for(i=0;i<strlen(str);i++)
{
if(str[i]>96 && str[i]<123) str[i] &= 223;
}
return 0;
char *p;
for(p=str;*p;p++)
*p=toupper(*p);
return(str);
}
#endif
......@@ -33,8 +33,10 @@
#ifdef ODPLAT_NIX
#define strnicmp strncasecmp
#define stricmp strcasecmp
int strlwr(char *str);
int strupr(char *str);
#define strlwr(x) od_strlwr(x)
#define strupr(x) od_strupr(x)
char *od_strlwr(char *str);
char *od_strupr(char *str);
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment