1/* $OpenBSD: io.h,v 1.12 2016/01/26 23:41:48 krw Exp $ */ 2 3/* 4 * io.h - simple io and input parsing routines 5 * 6 * Written by Eryk Vershen 7 */ 8 9/* 10 * Copyright 1996,1997,1998 by Apple Computer, Inc. 11 * All Rights Reserved 12 * 13 * Permission to use, copy, modify, and distribute this software and 14 * its documentation for any purpose and without fee is hereby granted, 15 * provided that the above copyright notice appears in all copies and 16 * that both the copyright notice and this permission notice appear in 17 * supporting documentation. 18 * 19 * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 20 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 * FOR A PARTICULAR PURPOSE. 22 * 23 * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 24 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 25 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 26 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 27 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 28 */ 29 30#ifndef __io__ 31#define __io__ 32 33unsigned long get_multiplier(long); 34void bad_input(const char *, ...); 35void flush_to_newline(int); 36void my_ungetch(int); 37int get_command(const char *, int, int *); 38int get_number_argument(const char *, long *); 39int get_okay(const char *, int); 40int get_partition_modifier(void); 41char *get_dpistr_argument(const char *); 42int number_of_digits(unsigned long); 43 44#endif /* __io__ */ 45