~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to ext/repl_str.h

  • Committer: Matthew Fuller
  • Date: 2016-01-25 01:46:38 UTC
  • mto: This revision was merged to the branch mainline in revision 427.
  • Revision ID: fullermd@over-yonder.net-20160125014638-u174wm6ct3p0qtwi
Add a dir to hold externally-sourced code, and bring in an
implementation of substring replacement.  The optimization in this
version is stupid overkill for what we'll need it for, but what the
heck.  No reason to go to the trouble of rolling our own.  Explicitly
in the public domain.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * An implementation of replacing substrings in a string.
 
3
 *
 
4
 * See repl_str.c for details
 
5
 */
 
6
#ifndef _REPL_STR_H
 
7
#define _REPL_STR_H
 
8
 
 
9
char *replace_substr(const char *, const char *, const char *);
 
10
 
 
11
#endif /* _REPL_STR_H */