// File: rb_support.h // Author: Karl Abrahamson /************************************************ * duplicateString * ************************************************ * duplicateString(s) returns a copy of string * * s, stored in memory allocated using 'new'. * ************************************************/ char* duplicateString(const char* name); /************************************************ * max * ************************************************ * max(x,y) returns the larger of x and y. * ************************************************/ int max(int x, int y); /************************************************ * strhash * ************************************************ * strhash(str) is a hash function suitable * * for a hash table whose keys are strings. * ************************************************/ long strhash(const char* str);