File: escape.h

package info (click to toggle)
vtprint 2.0.2-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 336 kB
  • ctags: 110
  • sloc: ansic: 659; sed: 487; makefile: 184; sh: 96
file content (60 lines) | stat: -rw-r--r-- 3,333 bytes parent folder | download | duplicates (7)
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 */