|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T h
Length: 1269 (0x4f5) Types: TextFile Names: »hexphoto.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/others/quipu/photo/hexphoto.c«
/* hexphoto.c - your comments here */ #ifndef lint static char *rcsid = "$Header: /f/osi/others/quipu/photo/RCS/hexphoto.c,v 7.0 89/11/23 22:01:42 mrose Rel $"; #endif /* * $Header: /f/osi/others/quipu/photo/RCS/hexphoto.c,v 7.0 89/11/23 22:01:42 mrose Rel $ * * * $Log: hexphoto.c,v $ * Revision 7.0 89/11/23 22:01:42 mrose * Release 6.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ #include "quipu/util.h" #include "quipu/photo.h" #include "psap.h" decode_t4 (picture,persons_name, len) char *picture; char *persons_name; { int i; if (len == 0) len = photolen (picture); for (i=0; i<len; i++) (void) fprintf (stderr,"%02x",*picture++ & 255); } photolen (s1) char * s1; { int length=0,cnt,i; char * temp; if (*s1 == 0x03) { /* we have a coded picture */ temp = s1; temp++; cnt = *temp++ & 0x7f; /*assume len > 127 for now */ for (i=0; i<cnt; i++) length = (length << 8) | (*temp++ & 0xff) ; length += 2 + cnt; return (length); } else return (-1); }