hexphoto.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 67 行
C
67 行
/* hexphoto.c - your comments here */#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/others/quipu/photo/RCS/hexphoto.c,v 9.0 1992/06/16 12:43:35 isode Rel $";#endif/* * $Header: /xtel/isode/isode/others/quipu/photo/RCS/hexphoto.c,v 9.0 1992/06/16 12:43:35 isode Rel $ * * * $Log: hexphoto.c,v $ * Revision 9.0 1992/06/16 12:43:35 isode * Release 8.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);}static 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);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?