home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_02
/
2n02048b
< prev
next >
Wrap
Text File
|
1990-12-30
|
732b
|
31 lines
#include <dos.h>
#include "netbios.h"
/**************************************************
* shutdown_netbios - Clear name table entry
* Parameters: name (in) - application name used
* during init_netbios()
* Returns: 0 for success, else
* return codes defined for NCB_DELETE_NAME
* History: Original code by William H. Roetzheim
***************************************************/
unsigned int shutdown_netbios(char *name)
{
int i;
struct net_control_block ncb;
init_ncb(&ncb);
for (i = 0; i < 15; i++)
{
if (name[i] == 0) break;
ncb.l_name[i] = name[i++];
}
ncb.command = NCB_DELETE_NAME;
return ncb.retcode;
}