1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It is one of the source files comprising zwgc, the Zephyr WindowGram
5 * Created by: Marc Horowitz <marc@athena.mit.edu>
7 * $Id: character_class.c,v 1.8 1999/01/22 23:20:13 ghudson Exp $
9 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file
16 #if (!defined(lint) && !defined(SABER))
17 static const char rcsid_character_class_c[] = "$Id: character_class.c,v 1.8 1999/01/22 23:20:13 ghudson Exp $";
20 #include <zephyr/mit-copyright.h>
21 #include <zephyr/zephyr.h>
22 #include "character_class.h"
25 * It may look like we are passing the cache by value, but since it's
26 * really an array we are passing by reference. C strikes again....
29 static character_class cache;
32 char * string_to_character_class(str)
37 (void) memset(cache, 0, sizeof(cache));
39 for (i=0; i<strlen(str); i++)