HP Advanced Communications Controllers (ACC) Podręcznik Użytkownika Strona 149

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 328
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 148
ZCOM C I/F Library Routines
LTFIND (3X)
Chapter 4 149
struct {
zltt_type sys;
char ext[ZCOM_MAXLSIZE]; /* Max allowable extension */
ltt;
For example, to access the fields:
This allows &ltt to be used instead of ibuf in the ltfind call.
EXAMPLE
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h>
int32 ierr;
zaddr_type zaddr;
char laddr[10];
int32 llen;
char ibuf[size]; /* where size is user-determined; must be >= len */
int32 len;
if (ierr = ltfind (&zaddr, laddr, llen, ibuf, len)) {
/* error return code */
}
else {
/* good return code */
}
ltt.sys.ltname gives the terminal name
ltt.ext[0] gives the 1st byte in table extension
Przeglądanie stron 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 327 328

Komentarze do niniejszej Instrukcji

Brak uwag