1: #ifndef lint
   2: static char sccsid[] = "@(#)label.c	4.1 (Berkeley) 6/27/83";
   3: #endif
   4: 
   5: #define N 0104
   6: #define E 0101
   7: #define NE 0105
   8: #define S 0110
   9: #define W 0102
  10: #define SW 0112
  11: /*	arrange by incremental plotting that an initial
  12:  *	character such as +, X, *, etc will fall
  13:  *	right on the point, and undo it so that further
  14:  *	labels will fall properly in place
  15:  */
  16: char lbl_mv[] = {
  17:     036,040,S,S,S,S,S,S,SW,SW,SW,SW,SW,SW,SW,SW,SW,SW,037,0
  18: };
  19: char lbl_umv[] = {
  20:     036,040,N,N,N,N,N,N,NE,NE,NE,NE,NE,NE,NE,NE,NE,NE,037,0
  21: };
  22: label(s)
  23: char *s;
  24: {
  25:     register i,c;
  26:     for(i=0; c=lbl_mv[i]; i++)
  27:         putch(c);
  28:     for(i=0; c=s[i]; i++)
  29:         putch(c);
  30:     for(i=0; c=lbl_umv[i]; i++)
  31:         putch(c);
  32: }

Defined functions

Defined variables

lbl_mv defined in line 16; used 1 times
  • in line 26
lbl_umv defined in line 19; used 1 times
  • in line 30
sccsid defined in line 2; never used

Defined macros

E defined in line 6; never used
N defined in line 5; used 6 times
  • in line 20(6)
NE defined in line 7; used 10 times
  • in line 20(10)
S defined in line 8; used 6 times
  • in line 17(6)
SW defined in line 10; used 10 times
  • in line 17(10)
W defined in line 9; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2044
Valid CSS Valid XHTML 1.0 Strict