On Wednesday, January 26, 2011 02:45:43 am Marek Olšák wrote:
> Hi Michal,
> 
> Is this what you have in mind?
> 
> diff --git a/src/gallium/auxiliary/util/u_debug.c
> b/src/gallium/auxiliary/util/u_debug.c
> index 8cf7660..cb4d60d 100644
> --- a/src/gallium/auxiliary/util/u_debug.c
> +++ b/src/gallium/auxiliary/util/u_debug.c
> @@ -180,6 +180,13 @@ debug_get_num_option(const char *name, long dfault)
>     return result;
>  }
> 
> +static boolean is_alphanumeric(char c)
> +{
> +    return (c >= 'a' && c <= 'z') ||
> +           (c >= 'A' && c <= 'Z') ||
> +           (c >= '0' && c <= '9');
> +}
> +

You probably just want the standard C isalnum() function from ctype.h here.  
I'm almost positive even MSVC supports it.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to