|
|
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«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.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 6.0 89/03/18 23:34:05 mrose Rel $";
#endif
/*
* $Header: /f/osi/others/quipu/photo/RCS/hexphoto.c,v 6.0 89/03/18 23:34:05 mrose Rel $
*
*
* $Log: hexphoto.c,v $
* Revision 6.0 89/03/18 23:34:05 mrose
* Release 5.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);
}