[PENNMUSH] safe_str() and unsafe charecters

Dan McKinnon dan at danmckinnon.net
Mon Oct 3 16:21:41 CDT 2005


I have made some custom functions that output some odd data.

For example

FUNCTION (fun_myfun){
    char tbuf[BUFFER_LEN];
    int a = 0;
    tbuf[a++] = 26;
    tbuf[a++] = 1;
    tbuf[a++] = 26;
    tbuf[a++] = 27;
    tbuf[a] = '\0';
    safe_str( tbuf, buff, bp );
}

Now when I call it,  it just seems to output somewhat random one and two 
charecter strings.
Is there a way of actually getting this crazy string to output free from 
restraints?

Thanks.




More information about the Pennmush mailing list