1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00
psyced/world/net/utility/md5.c

18 lines
421 B
C

// $Id: md5.c,v 1.6 2007/08/10 19:07:44 lynx Exp $ // vim:syntax=lpc:ts=8
#include <net.h>
inherit NET_PATH "spawn";
handback(mixed digest, closure callback) {
funcall(callback, digest);
unspawn();
}
dmd5(mixed text, closure callback) {
// init(); .... init????
spawn("md5.pl", 0, lambda(({ 'digest }),
({ symbol_function("handback", ME), 'digest,
callback })));
send(text);
}