DsInqDriverInfo(3D) — Kubota Pacfic Computer Inc. (\*(Dd)
NAME
DsInqDriverInfo − Return the names and descriptions of the installed device drivers
SYNOPSIS
C:
void DsInqDriverInfo(count, name, description)
DtInt count;
DtPtr name[];
DtPtr description[];
FORTRAN:
DSQDI(COUNT, NAME, NAMLEN, DESC, DESLEN)
INTEGER∗4 COUNT
CHARACTER NAME(COUNT)∗NAMLEN
CHARACTER DESC(COUNT)∗DESLEN
INTEGER∗4 NAMLEN, DESLEN
DESCRIPTION
DsInqDriverInfo returns the names and descriptions of the available device drivers, in the arrays name and description. If there are more than count device drivers installed in the Doré system then only the first count will be returned. DsInqNumDrivers <DSQND> can be used to determine the number of installed device drivers. For example, in C you can use that information to allocate the right amount of space for the arrays:
DtPtr ∗names;
DtPtr ∗descriptions;
DtInt cnt;
cnt = DsInqNumDrivers();
names = (DtPtr ∗)malloc(cnt∗sizeof(DtPtr));
descriptions = (DtPtr ∗)malloc(cnt∗sizeof(DtPtr));
DsInqDriverInfo(cnt, names, descriptions);
FORTRAN SPECIFIC
The parameters NAMLEN and DESLEN specify the length of each of the character arrays passed to DSQDI. Driver names that are longer than NAMLEN will be truncated to fit in the specified size, and driver descriptions that are longer than DESLEN will be truncated to the specified size.
SEE ALSO
September 02, 1992