1 /***************************************************************************
5 * Purpose: Test functions in C for UFFI library
6 * Programer: Kevin M. Rosenberg
7 * Date Started: Mar 2002
9 * CVS Id: $Id: c-test-fns.c,v 1.1 2002/03/21 02:41:30 kevin Exp $
11 * This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
13 * UFFI users are granted the rights to distribute and use this software
14 * as governed by the terms of the Lisp Lesser GNU Public License
15 * (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 * These variables are correct for GCC
18 * you'll need to modify these for other compilers
19 ***************************************************************************/
25 /* Test of constant input string */
27 cstring_count_upper (char* psz)
37 /* Test of input and output of a string */
39 cstring_to_upper (char* psz)
42 *psz = toupper (*psz);
47 /* Test of an output only string */
49 cstring_make_random (int size, char* buffer)
52 for (i = 0; i < size; i++)
53 buffer[i] = 'A' + (rand() % 26);