/*
- * "$Id: lpstat.c,v 1.37.2.17 2003/06/14 14:08:46 mike Exp $"
+ * "$Id: lpstat.c,v 1.37.2.18 2004/02/25 16:58:32 mike Exp $"
*
* "lpstat" command for the Common UNIX Printing System (CUPS).
*
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Extract a single destination name from the name string...
*/
- for (pptr = printer; !isspace(*dptr) && *dptr != ',' && *dptr != '\0';)
+ for (pptr = printer; !isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0';)
{
if ((pptr - printer) < (sizeof(printer) - 1))
*pptr++ = *dptr++;
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*/
for (ptr = printer;
- *ptr != '\0' && *dptr != '\0' && tolower(*ptr) == tolower(*dptr);
+ *ptr != '\0' && *dptr != '\0' && tolower(*ptr & 255) == tolower(*dptr & 255);
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*/
for (ptr = printer;
- *ptr != '\0' && *dptr != '\0' && tolower(*ptr) == tolower(*dptr);
+ *ptr != '\0' && *dptr != '\0' && tolower(*ptr & 255) == tolower(*dptr & 255);
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*/
for (ptr = printer;
- *ptr != '\0' && *dptr != '\0' && tolower(*ptr) == tolower(*dptr);
+ *ptr != '\0' && *dptr != '\0' && tolower(*ptr & 255) == tolower(*dptr & 255);
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*/
for (ptr = dest;
- *ptr != '\0' && *dptr != '\0' && tolower(*ptr) == tolower(*dptr);
+ *ptr != '\0' && *dptr != '\0' && tolower(*ptr & 255) == tolower(*dptr & 255);
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*ptr != '\0' && *dptr != '\0' && *ptr == *dptr;
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
* Skip leading whitespace and commas...
*/
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
*/
for (ptr = printer;
- *ptr != '\0' && *dptr != '\0' && tolower(*ptr) == tolower(*dptr);
+ *ptr != '\0' && *dptr != '\0' && tolower(*ptr & 255) == tolower(*dptr & 255);
ptr ++, dptr ++);
- if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr)))
+ if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255)))
{
match = 1;
break;
* Skip trailing junk...
*/
- while (!isspace(*dptr) && *dptr != ',' && *dptr != '\0')
+ while (!isspace(*dptr & 255) && *dptr != ',' && *dptr != '\0')
dptr ++;
- while (isspace(*dptr) || *dptr == ',')
+ while (isspace(*dptr & 255) || *dptr == ',')
dptr ++;
if (*dptr == '\0')
/*
- * End of "$Id: lpstat.c,v 1.37.2.17 2003/06/14 14:08:46 mike Exp $".
+ * End of "$Id: lpstat.c,v 1.37.2.18 2004/02/25 16:58:32 mike Exp $".
*/