File: sputs.c

package info (click to toggle)
robotour 3.1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,596 kB
  • ctags: 2,972
  • sloc: cpp: 17,705; sh: 3,060; ansic: 2,778; makefile: 144
file content (28 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Sputs.c: this function "puts" a string which Sgets can receive */
#include <stdio.h>
#include "sockets.h"

/* --------------------------------------------------------------------- */

/* Sputs: */
#ifdef __PROTOTYPE__
void Sputs(
  char   *buf,
  Socket *skt)
#else
void Sputs(
  buf,
  skt)
char   *buf;
Socket *skt;
#endif
{

/* write out buf and the null byte */
Swrite(skt,buf,strlen(buf)+1);

}

/* ---------------------------------------------------------------------
 * vim: ts=4
 */