source: trunk/athena/bin/gms/view_message_by_tty.c @ 1482

Revision 1482, 848 bytes checked in by eichin, 36 years ago (diff)
Initial revision
Line 
1/* This file is part of the Project Athena Global Message System.
2 * Created by: Mark W. Eichin <eichin@athena.mit.edu>
3 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/gms/view_message_by_tty.c,v $
4 * $Author: eichin $
5 *
6 *      Copyright (c) 1988 by the Massachusetts Institute of Technology.
7 *      For copying and distribution information, see the file
8 *      "mit-copyright.h".
9 */
10#include <mit-copyright.h>
11#ifndef lint
12static char rcsid_view_message_by_tty_c[] = "$Header: /afs/dev.mit.edu/source/repository/athena/bin/gms/view_message_by_tty.c,v 1.1 1988-09-26 15:22:53 eichin Exp $";
13#endif lint
14
15#include "globalmessage.h"
16
17void view_message_by_tty(message)
18     char *message;
19{
20  char *ptr;
21
22  /* skip magic headers */
23  ptr = index(message, '\n')+1;
24  /* note that if there is nothing, strlen(ptr) == 0 */
25  write(1,ptr,strlen(ptr));
26}
Note: See TracBrowser for help on using the repository browser.