GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DELPTYPE(3) MBK UTILITY FUNCTIONS DELPTYPE(3)

delptype - delete an element of a ptype_list

See the file man1/alc_origin.1.

#include "mut.h"
ptype_list ∗delptype(pthead, type)
ptype_list ∗pthead;
long type;

Pointer to a ptype list
The pointer of this type is to be deleted.

delptype deletes the element of the ptype_list that has the type type in the list pointed to by pthead. The list consistency is maintained, and the element put back in the list of free blocks.

delptype returns a pointer to the new head of list if a typed pointer used to belong to the list. In most case, it has the value of pthead. If the type doesn't belong to the list, NULL is returned.

"∗∗∗ mbk error ∗∗∗ delptype impossible : pthead = NULL"

The pointer to the head of list is NULL, and that clear that such a list can't be ran thru.

#include "mut.h"
#include "mph.h"
void delete_user(ptfig)
phfig_list ∗ptfig;
{
phins_list ∗i;
	for (i = ptfig->PHINS; i; i = i->NEXT) 
		i->USER = delptype(i->USER, PLACEABOX);
}

mbk(1), ptype(3), addptype(3), getptype(3), freeptype(3).

See the file man1/alc_bug_report.1.

October 1, 1997 ASIM/LIP6

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.