avs_cpy.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 103 行
C
103 行
#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/dsap/common/RCS/avs_cpy.c,v 9.0 1992/06/16 12:12:39 isode Rel $";#endif/* * $Header: /xtel/isode/isode/dsap/common/RCS/avs_cpy.c,v 9.0 1992/06/16 12:12:39 isode Rel $ * * * $Log: avs_cpy.c,v $ * Revision 9.0 1992/06/16 12:12:39 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/attrvalue.h"extern LLog * log_dsap;AV_Sequence avs_comp_cpy (avs)AV_Sequence avs;{AV_Sequence ptr; if (avs==NULLAV) { return (NULLAV); } ptr = (AV_Sequence) smalloc (sizeof(avseqcomp)); AttrV_cpy_aux (&avs->avseq_av,&ptr->avseq_av); ptr->avseq_next = NULLAV; return (ptr);}static AV_Sequence avs_comp_cpy_enc (avs)AV_Sequence avs;{AV_Sequence ptr; if (avs==NULLAV) { return (NULLAV); } ptr = (AV_Sequence) smalloc (sizeof(avseqcomp)); AttrV_cpy_enc (&avs->avseq_av,&ptr->avseq_av); ptr->avseq_next = NULLAV; return (ptr);}AV_Sequence avs_cpy (avs)AV_Sequence avs;{AV_Sequence start;AV_Sequence ptr,ptr2;register AV_Sequence eptr; if (avs == NULLAV ) { return (NULLAV); } start = avs_comp_cpy (avs); ptr2 = start; for(eptr = avs->avseq_next; eptr != NULLAV; eptr = eptr->avseq_next) { ptr = avs_comp_cpy (eptr); ptr2->avseq_next = ptr; ptr2 = ptr; } return (start);}AV_Sequence avs_cpy_enc (avs)AV_Sequence avs;{AV_Sequence start;AV_Sequence ptr,ptr2;register AV_Sequence eptr; /* an AVS, and encode at the same time */ if (avs == NULLAV ) { return (NULLAV); } start = avs_comp_cpy_enc (avs); ptr2 = start; for(eptr = avs->avseq_next; eptr != NULLAV; eptr = eptr->avseq_next) { ptr = avs_comp_cpy_enc (eptr); ptr2->avseq_next = ptr; ptr2 = ptr; } return (start);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?