template.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 76 行
C
76 行
/* template.c - template for display processes */#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/others/quipu/photo/RCS/template.c,v 9.0 1992/06/16 12:43:35 isode Rel $";#endif/* * $Header: /xtel/isode/isode/others/quipu/photo/RCS/template.c,v 9.0 1992/06/16 12:43:35 isode Rel $ * * * $Log: template.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 "stdio.h"#include "quipu/photo.h"/* Any errors should be written to *stdout* *//* if the process exits, with out giving an error message, quipu may hang */photo_start (name)char * name;{ /* Initialise a window to recieve a photo of 'name' */ /* return 0 if sucessful -1 if not */ (void) fprintf (stderr,"PHOTO: not implemented yet"); return (-1);}photo_end (name)char * name;{ /* Decoding has finished - display the photo */ (void) printf ("done it"); (void) fflush (stdout); (void) close (1); /* this is needed for QUIPU if the process does not exit */ /* return 0 if sucessful -1 if not */ return (-1);}photo_black (length)int length;{ /* draw a black line of 'length' pixels */}photo_white (length)int length;{ /* draw a white line of 'length' pixels */}photo_line_end (line)bit_string * line;{ /* the end of a line has been reached */ /* A bit string is stored in line->dbuf_top */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?