file_cpy.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 52 行
C
52 行
#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/dsap/common/RCS/file_cpy.c,v 9.0 1992/06/16 12:12:39 isode Rel $";#endif/* * $Header: /xtel/isode/isode/dsap/common/RCS/file_cpy.c,v 9.0 1992/06/16 12:12:39 isode Rel $ * * * $Log: file_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"struct file_syntax * fileattr_cpy (fs)struct file_syntax * fs;{ fs->fs_ref++; return (fs);}file_cmp (a,b)struct file_syntax *a, *b;{ if ((a->fs_attr != NULLAttrV) && (b->fs_attr != NULLAttrV)) return (AttrV_cmp (a->fs_attr,b->fs_attr)); /* just compare file name for now */ if ((a->fs_name == NULLCP) || (b->fs_name == NULLCP)) { if (a->fs_mode & FS_DEFAULT) if (b->fs_mode & FS_DEFAULT) return 0; return (2); } return (pstrcmp (a->fs_name,b->fs_name));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?