Commit 4831e6c5 authored by David Byers's avatar David Byers
Browse files

(prot_a_output_num_list): New function to output num_list data types.

parent 8fd9c05d
/*
* $Id: prot-a-output.c,v 0.19 1995/10/31 11:23:06 byers Exp $
* $Id: prot-a-output.c,v 0.20 1996/06/14 15:50:46 byers Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Written by ceder 1990-07-13
*/
static char *rcsid = "$Id: prot-a-output.c,v 0.19 1995/10/31 11:23:06 byers Exp $";
static char *rcsid = "$Id: prot-a-output.c,v 0.20 1996/06/14 15:50:46 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -658,3 +658,21 @@ prot_a_output_version_info (Connection *fp,
prot_a_output_string(fp, v_info->server_name);
prot_a_output_string(fp, v_info->server_version);
}
void
prot_a_output_num_list (Connection *fp,
Number_list *num_list)
{
int i;
mux_printf(fp, " %lu", (unsigned long) num_list->length);
if (num_list->length == 0)
mux_printf(fp, " *");
else
{
mux_printf(fp, " {", num_list->length);
for (i = 0; i < num_list->length; i++)
mux_printf(fp, " %lu", num_list->data[i]);
mux_printf(fp, " }");
}
}
/*
* $Id: prot-a-output.h,v 0.11 1995/10/31 11:23:10 byers Exp $
* $Id: prot-a-output.h,v 0.12 1996/06/14 15:50:49 byers Exp $
* Copyright (C) 1991, 1992, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: prot-a-output.h,v 0.11 1995/10/31 11:23:10 byers Exp $
* $Id: prot-a-output.h,v 0.12 1996/06/14 15:50:49 byers Exp $
*
*/
extern void
......@@ -151,3 +151,7 @@ prot_a_output_conf_z_info_list(Connection *fp,
void
prot_a_output_version_info (Connection *fp,
Version_info *v_info);
void
prot_a_output_num_list (Connection *fp,
Number_list *num_list);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment