Top Up Prev Next Bottom Contents Index Search

16.5 Utility Functions

There are several utility functions defined in the CG domain for aiding in code generation. Here we describe just a few of them:

char* makeLower(const char* name); 
int rshSystem(const char* hostname, const char* command,
const char* directory=NULL);
The above functions are defined in the file CGUtilities.h. The first method returns a dynamically allocated string that is a lower-case version of the argument string. The second method is used to execute a remote shell command, command, in the directory on the machine hostname. We use the xon command instead of rsh in order to preserve any X-Window environment variables.



Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.