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


Manual Reference Pages  -  GETPTYPE (3)

[Include document man1/alc_contents.mac]

   getptype    getptype

NAME

getptype - retrieve a ptype from a ptype_list

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameters
Description
Return Value
Example
See Also

SYNOPSYS






#include "mut.h"
ptype_list *getptype(pthead,type)
ptype_list *pthead;
long type;


PARAMETERS

pthead Pointer to a ptype list
type Flag indicating the pointer owner

DESCRIPTION

getptype looks for a ptype element in the list pointed to by pthead.

RETURN VALUE

getptype returns a pointer to the ptype that match the type. Be careful, it is not the ptype->DATA that is returned. If no ptype has the given type, then NULL is returned.

EXAMPLE






#include "mut.h"
#include "mph.h"
void get_corner(ptfig, name, x2, y2)
phfig_list *ptfig;
char *name;
int *x2, *y2;
{
phins_list *i = getphins(ptfig, name);
ptype_list *p = getptype(i->USER, (long)PLACEABOX);
   *x2 = (num_list *)(p->DATA)->DATA;
   *y2 = (num_list *)(p->DATA)->NEXT->DATA;
}  


SEE ALSO

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

[Include document man1/alc_bug_report.1]

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


ASIM/LIP6 GETPTYPE (3) October 1, 1997

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