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.2 2002/03/21 04:04:45 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 ***************************************************************************/
29 /* Test of constant input string */
34 cs_count_upper (char* psz)
49 /* Test of input and output of a string */
54 cs_to_upper (char* psz)
58 *psz = toupper (*psz);
64 /* Test of an output only string */
69 cs_make_random (int size, char* buffer)
72 for (i = 0; i < size; i++)
73 buffer[i] = 'A' + (rand() % 26);