Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
4831e6c5
Commit
4831e6c5
authored
Jun 14, 1996
by
David Byers
Browse files
(prot_a_output_num_list): New function to output num_list data types.
parent
8fd9c05d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/prot-a-output.c
View file @
4831e6c5
/*
* $Id: prot-a-output.c,v 0.
19
199
5/10/31 11:23:0
6 byers Exp $
* $Id: prot-a-output.c,v 0.
20
199
6/06/14 15:50:4
6 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
199
5/10/31 11:23:0
6 byers Exp $"
;
static
char
*
rcsid
=
"$Id: prot-a-output.c,v 0.
20
199
6/06/14 15:50:4
6 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
,
" }"
);
}
}
src/server/prot-a-output.h
View file @
4831e6c5
/*
* $Id: prot-a-output.h,v 0.1
1
199
5/10/31 11:23:10
byers Exp $
* $Id: prot-a-output.h,v 0.1
2
199
6/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.1
1
199
5/10/31 11:23:10
byers Exp $
* $Id: prot-a-output.h,v 0.1
2
199
6/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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment