nucm-logo

NUCM Documentation
Interface: Query: nc_destroy_memberlist


[Collection | Query | Attribute]

[nc_list | nc_destroy_memberlist | nc_gettype | nc_version | nc_lastversion | nc_existsversion | nc_isinitiated | nc_isopen]

Signature

void  nc_destroy_memberlist(char*  memberlist)

Functionality

Deallocates the memory that is occupied by the memberlist structure.

Return Values

None

NdbErrno Codes

None

Example

Assuming a repository is filled with projects. To obtain a list of projects that are available in the repository, the following code fragment can be used:
   #include "nc.h"

   t_memberlist*  memberlist;
   t_memberlist*  member;

   nc_list("//serl.cs.colorado.edu:1234/nucm_root",
	   "",
	   &memberlist);
   member = memberlist;
   while (member != NULL) {
      printf("%s, %s\n", member->name, member->version);
      member = member->next;
   }
   nc_destroy_memberlist(memberlist);

[Top | Quick Index] [Concepts | Interface]

SERL <serl.cs.colorado.edu>