1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/**************************************************************************
**************************************************************************
** **
** escape.h Routine for performing escape code string expansion. **
** ======== **
** **
** Purpose: Expand strings with C style escapes in them. **
** **
** Author: Garrett D'Amore <garrett@sciences.sdsu.edu> **
** **
** Copyright: 1994, Garrett E. D'Amore **
** **
** NO WARRANTY: This program is provided entirely without warranty. **
** The user assumes full responsibility for the use of **
** this program, and agrees to indemnify the author and **
** the copyright holder from any damage or loss that **
** may result from the use of or inability to use this **
** program. In simple language: YOU USE THIS PROGRAM **
** AT YOUR OWN RISK! **
** **
** Warning: None. **
** **
** Restrictions: None. **
** **
** Algorithm: None. **
** **
** References: Kernighan & Ritchie, "The C Programming Language" **
** **
** File formats: None. **
** **
** Rev. History: June 4, 1994 Garrett D'Amore **
** -- Initial coding. **
** **
** Notes: None. **
** **
**************************************************************************
**************************************************************************/
#ifndef ESCAPE_H
#define ESCAPE_H
/* >>>>>>>>>> Prototypes <<<<<<<<<< */
/***************************************
*
* escape Convert a C style format string to actual value.
*
* Purpose Provides a mechanism for expanding C-style escape
* codes in a string.
*
* Parameters source: String to expand.
*
* Returns pointer to converted string on success,
* NULL on (parse) error.
*
*/
char *escape (char *source);
#endif /* ESCAPE_H */
|