interact.c

foundationI_fluffos_v1/lib/secure/SimulEfun/interact.c · 439 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

//	/adm/simul_efun/interact.c
//	from the Nightmare mudlib
//	searches a string for a given substring 
//	created by Descartes of Borg 03 february 1993

int interact(string substr, string str) {
    string a, b;
  
    if(!str) return 0;
    if(!substr) return 0;
    if(sscanf(str, "%s"+substr+"%s", a, b) ==2) return 1;
    if(sscanf(str, substr+"%s", a) ==1) return 1;
    if(sscanf(str, "%s"+substr, a) == 1) return 1;
    return 0;
}

Site Stats

Snippets: 1791
Codebases: 571