mcDBprintDir — Print database directory
#include <stdio.h> #include <memcom.h> int mcDBprintDir(int handle, const char* pattern, FILE* out);
mcDBprintDir
prints the index, i.e the
list of the dataset names and attributes, of the database identified
by handle
to the stream out
.
pattern
defines the pattern-matching string. If
completed successfully, the function returns 0. Otherwise, a
negative value indicating the MemCom
error number is returned.
handle
Database handle (input).
pattern
String containing pattern-matching criteria for
selective output. The pattern matching mechanism is the same
as the one found in the UNIX
Bourne shell. If all datasets are to be
listed, set pattern
to
"*"
or specify
NULL
.
out
Output stream (input). If set to NULL, the default
output stream stdout
will be
selected.