summaryrefslogtreecommitdiff
path: root/ipl/progs/chars.icn
blob: a58dcd181d88e687bff607afb35ce56e96a45c12 (plain)
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
29
30
31
############################################################################
#
#	File:     chars.icn
#
#	Subject:  Program to list the different characters in a file
#
#	Author:   Ralph E. Griswold
#
#	Date:     March 26, 2002
#
############################################################################
#
#  This file is in the public domain.
#
############################################################################
#
#  This program lists all the different characters in a file.  image()
#  is used to show printable representations.
#
############################################################################

procedure main()
   local chars

   chars := ''

   while chars ++:= read()

   every write(image(!chars))

end