source: trunk/athena/bin/get_message/view_message_by_tty.c @ 14063

Revision 14063, 1.0 KB checked in by danw, 25 years ago (diff)
get_message, formerly in athena/bin/gms
Line 
1/* Copyright 1988, 1998 by the Massachusetts Institute of Technology.
2 *
3 * Permission to use, copy, modify, and distribute this
4 * software and its documentation for any purpose and without
5 * fee is hereby granted, provided that the above copyright
6 * notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting
8 * documentation, and that the name of M.I.T. not be used in
9 * advertising or publicity pertaining to distribution of the
10 * software without specific, written prior permission.
11 * M.I.T. makes no representations about the suitability of
12 * this software for any purpose.  It is provided "as is"
13 * without express or implied warranty.
14 */
15
16static const char rcsid[] = "$Id: view_message_by_tty.c,v 1.1 1999-12-08 22:06:46 danw Exp $";
17
18#include "globalmessage.h"
19
20void view_message_by_tty(char *message)
21{
22  char *ptr;
23
24  /* skip magic headers */
25  ptr = strchr(message, '\n')+1;
26  /* note that if there is nothing, strlen(ptr) == 0 */
27  write(1,ptr,strlen(ptr));
28}
Note: See TracBrowser for help on using the repository browser.