COMMON.C

LIB3/STD/LANGUAGE/COMMON.C · 603 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

string long()
{
    return
	"This normal language spoken by almost everyone.\n";
}

string  standard_garble( string mess )
{
    int     i;
    string  ret;

    ret = "";
    for( i = 0; i < strlen( mess ); i++ )
	if( mess[ i ] != ' ' )
	    ret += "*";
	else
	    ret += " ";
    return ret;
}

mixed   garble_tell( string start, string mess )
{
    return({ start, standard_garble( mess ) });
}

mixed   garble_shout( string start, string mess )
{
    return({ start, standard_garble( mess ) });
}

mixed   garble_say( string start, string mess )
{
    return({ start, standard_garble( mess ) });
}

Site Stats

Snippets: 1791
Codebases: 571