version 1.13, 2014/07/20 05:22:02 |
version 1.14, 2014/07/20 06:39:41 |
|
|
#define SLC_NAMES |
#define SLC_NAMES |
|
|
#include "telnet_locl.h" |
#include "telnet_locl.h" |
|
|
|
#include <ctype.h> |
#include <poll.h> |
#include <poll.h> |
|
|
FILE *NetTrace = 0; /* Not in bss, since needs to stay */ |
FILE *NetTrace = 0; /* Not in bss, since needs to stay */ |
|
|
* Upcase (in place) the argument. |
* Upcase (in place) the argument. |
*/ |
*/ |
|
|
void |
void |
upcase(argument) |
upcase(char *argument) |
char *argument; |
|
{ |
{ |
int c; |
int c; |
|
|
while ((c = *argument) != 0) { |
while ((c = *argument) != '\0') |
if (islower(c)) { |
*argument++ = toupper((unsigned char)c); |
*argument = toupper(c); |
|
} |
|
argument++; |
|
} |
|
} |
} |
|
|
/* |
/* |
|
|
break; |
break; |
|
|
default: |
default: |
if (isprint(pointer[i]) && pointer[i] != '"') { |
if (isprint((unsigned char)pointer[i]) && |
|
pointer[i] != '"') { |
if (noquote) { |
if (noquote) { |
putc('"', NetTrace); |
putc('"', NetTrace); |
noquote = 0; |
noquote = 0; |