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

Revision 8855, 851 bytes checked in by ghudson, 28 years ago (diff)
BSD -> ANSI string and memory functions
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: ghudson $
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.2 1996-09-19 22:39:20 ghudson 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 = strchr(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.