crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs

isspace.c (562B)


      1 /*************************************************************************
      2  * This file is part of Crosroads 1.23, a load balancer and fail over
      3  * utility for TCP. Copyright (c) Karel Kubat, distributed under GPL.
      4  * Visit http://crossroads.e-tunity.com for information.
      5  *************************************************************************/
      6 #include "crossroads.h"
      7 
      8 /*
      9  * I'd much rather use ctype.h's isspace macro, but it's not available
     10  * everywhere...
     11  */
     12 
     13 int is_space (char ch) {
     14     return (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r');
     15 }