2 * Copyright (c) 2000 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 /***********************************************************************
22 * int dataasciigen(listofchars, buffer, size, offset)
24 * This function fills buffer with ascii characters.
25 * The ascii characters are obtained from listofchars or the CHARS array
26 * if listofchars is NULL.
27 * Each char is selected by an index. The index is the remainder
28 * of count divided by the array size.
29 * This method allows more than one process to write to a location
30 * in a file without corrupting it for another process' point of view.
32 * The return value will be the number of character written in buffer
35 ***********************************************************************/
36 int dataasciigen(char *, char *, int, int);
38 /***********************************************************************
39 * int dataasciichk(listofchars, buffer, size, count, errmsg)
41 * This function checks the contents of a buffer produced by
45 * >= 0 : error at character count
47 ***********************************************************************/
49 int dataasciichk(char *, char *, int, int, char**);