|
| iMatix home page | << | < | > | >> |
SFLVersion 2.10 |
#include "sflstr.h"
char *
strconvch (
char *string,
char from,
char to)
Converts all instances of one character in a string to some other character. Returns string. Does nothing if the string is NULL.
{
char *scan;
if (string)
{
scan = string;
while (*scan)
{
if (*scan == from)
*scan = to;
scan++;
}
}
return (string);
}
| | << | < | > | >> |
|