⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 odr_any.c

📁 harvest是一个下载html网页得机器人
💻 C
字号:
/* * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Id: odr_any.c,v 1.14 2003/05/20 19:55:30 adam Exp $ */#if HAVE_CONFIG_H#include <config.h>#endif#include "odr-priv.h"/* * This is a catch-all type. It stuffs a random ostring (assumed to be properly * encoded) into the stream, or reads a full data element. Implicit tagging * does not work, and neither does the optional flag, unless the element * is the last in a sequence. */int odr_any(ODR o, Odr_any **p, int opt, const char *name){    if (o->error)    	return 0;    if (o->direction == ODR_PRINT)    {	odr_prname(o, name);    	fprintf(o->print, "ANY (len=%d)\n", (*p)->len);    	return 1;    }    if (o->direction == ODR_DECODE)    	*p = (Odr_oct *)odr_malloc(o, sizeof(**p));    if (ber_any(o, p))    	return 1;    *p = 0;    return odr_missing(o, opt, name);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -