2
util.c - helper functions
3
Copyright (C) 2006-2011 Jean Delvare <jdelvare@suse.de>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
15
/* Return 1 if we should continue, 0 if we should abort */
21
if (!fgets(s, 2, stdin))
22
return 0; /* Nack by default */
37
/* Flush extra characters */
38
while (s[0] != '\n') {
50
/* I/O read of specified size */
51
unsigned long inx(int addr, int width)
65
/* I/O write of specified size */
66
void outx(unsigned long value, int addr, int width)