1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It contains source for the ZReadZcode function.
4 * Created by: Jeffrey Hutzelman
8 * Copyright (c) 1987, 1990, 2002 by the Massachusetts Institute of Technology.
9 * For copying and distribution information, see the file
14 static const char rcsid_ZReadZcode_c[] = "$Id$";
22 ZReadZcode(unsigned char *ptr,
32 while (*ptr && n < max) {
36 case 0xf0: field[n++] = 0x00; continue;
37 case 0xf1: field[n++] = 0xff; continue;
38 default: return ZERR_BADFIELD;
45 return (ZERR_BADFIELD);