Next: str_tokcnt, Previous: str_prune, Up: Strings
replaces all occurances of a character in a string with another
#include <suplib/str.h>char *str_rep( char *str, int c_old, int c_new );
char *str
- the string to scan
int c_old
- the character to be replaced
int c_new
- the character to be inserted
str_rep
scans a string, replacing every occurance of a the
specified character with another.
It returns the pointer to the string which was passed.
Diab Jerius