Skip to content
Snippets Groups Projects
Commit 488f8396 authored by rswindell's avatar rswindell
Browse files

Delete unused binstr() function.

parent 3d93fd6e
No related branches found
No related tags found
No related merge requests found
......@@ -89,29 +89,6 @@ long sbbs_t::listmsgs(uint subnum, long mode, post_t *post, long start, long pos
return(listed);
}
char *binstr(uchar *buf, ushort length, char* str)
{
char tmp[128];
int i;
str[0]=0;
for(i=0;i<length;i++)
if(buf[i] && (buf[i]<' ' || buf[i]>=0x7f)
&& buf[i]!='\r' && buf[i]!='\n' && buf[i]!='\t')
break;
if(i==length) /* not binary */
return((char*)buf);
for(i=0;i<length;i++) {
sprintf(tmp,"%02X ",buf[i]);
strcat(str,tmp);
if(i >= 100) {
strcat(str,"...");
break;
}
}
return(str);
}
void sbbs_t::dump_msghdr(smbmsg_t* msg)
{
newline();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment