miscfx.h

Miscelaneous functions
These functions are declared here because, frankly, they wouldn't fit anywhere else. Some of them should be considered deprecated. All in due course, I suppose.

Original banner, legalese and change history follow.


 *****************************************************************************
 **                                                                         **
 **  FILE:     miscfx.h                                                     **
 **  AUTHORS:  Alexios                                                      **
 **  REVISION: A, June 94                                                   **
 **  PURPOSE:  Interface to miscfx.h, implementing various useful functs.   **
 **  NOTES:                                                                 **
 **  LEGALESE:                                                              **
 **                                                                         **
 **  This program is free software; you  can redistribute it and/or modify  **
 **  it under the terms of the GNU  General Public License as published by  **
 **  the Free Software Foundation; either version 2 of the License, or (at  **
 **  your option) any later version.                                        **
 **                                                                         **
 **  This program is distributed  in the hope  that it will be useful, but  **
 **  WITHOUT    ANY WARRANTY;   without  even  the    implied warranty  of  **
 **  MERCHANTABILITY or  FITNESS FOR  A PARTICULAR  PURPOSE.   See the GNU  **
 **  General Public License for more details.                               **
 **                                                                         **
 **  You  should have received a copy   of the GNU  General Public License  **
 **  along with    this program;  if   not, write  to  the   Free Software  **
 **  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              **
 **                                                                         **
 *****************************************************************************


 *
 * $Id: miscfx.h,v 1.3 2001/04/22 14:49:04 alexios Exp $
 *
 * $Log: miscfx.h,v $
 * Revision 1.3  2001/04/22 14:49:04  alexios
 * Merged in leftover 0.99.2 changes and additional bug fixes.
 *
 * Revision 0.8  1999/07/18 21:13:24  alexios
 * Supplied own version of usleep for borken (sic) bastard
 * operating systems that don't define it.
 *
 * Revision 0.7  1998/12/27 15:19:19  alexios
 * Moved functions that didn't really belong here to other
 * header files.
 *
 * Revision 0.6  1998/08/14 11:23:21  alexios
 * Added long-awaited function stripspace() to remove leading
 * and trailing white space from a string.
 *
 * Revision 0.5  1997/11/06 20:03:39  alexios
 * Added GPL legalese to the top of this file.
 *
 * Revision 0.4  1997/11/03 00:29:40  alexios
 * Optimised stgxlate for speed; created a new translation
 * function, faststgxlate that is suitable for very fast
 * applications with complete translation tables.
 *
 * Revision 0.3  1997/09/12 12:45:25  alexios
 * Added lowerc() and upperc() functions.
 *
 * Revision 0.2  1997/08/30 12:54:20  alexios
 * Removed bladcommand(), replaced it by bbsdcommand() (different
 * syntax).
 *
 * Revision 0.1  1997/08/26 15:48:53  alexios
 * First registered revision. Adequate.
 *
 *
 *


o rnd
A simple way to get (pseudo-)random numbers
o randomize
Seed the random number generator.
o min
Returns the minimum of two numbers.
o max
Returns the maximum of two numbers.
o alcmem
Safe memory allocation.
o lowerc
Convert a string to lower case.
o upperc
Convert a string to upper case.
o stripspace
Strips leading and trailing white space.
o sameto
Case-insensitive initial substring match.
o sameas
Case-insensitive string match.
o zeropad
Zero-pads a string array.
o stgxlate
Performs character-for-character string translation.
o faststgxlate
Performs faster character-for-character string translation.
o bbsdcommand
Sends a command to the BBS daemon.
o search
Search a string for a set of keywords.
o runmodule
Executes a module.
o runcommand
Executes a command.
o editor
Edit a file.
o gopage
Call the menu manager.
o fcopy
Copy a file.
o usleep
Sleep for a given number of microseconds.
o mkfname
Format a filename.
Author:
Alexios

Alphabetic index



This page was generated with the help of DOC++.