wrap.c

final_realms_fluffos_v1/lib/secure/simul_efun/wrap.c · 276 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

//      /secure/simul_efun/wrap.c
//      from the RotD Mudlib
//      wraps text automatically
//      created by Pallando@Nightmare

varargs string wrap(string str, int width) {
    return (width ? sprintf("%-="+width+"s", str+"\n") : 
      sprintf("%-=75s", str+"\n"));
}

Site Stats

Snippets: 1791
Codebases: 571