clear i_flags when allocating new inodes
[unix-history] / usr / src / lib / libplot / t4013 / scale.c
CommitLineData
b059c7be
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
0f869949 7#ifndef lint
b059c7be
DF
8static char sccsid[] = "@(#)scale.c 5.1 (Berkeley) %G%";
9#endif not lint
0f869949
JK
10
11extern float scalex;
12extern float scaley;
13extern int scaleflag;
14scale(i,x,y)
15char i;
16float x,y;
17{
18 switch(i) {
19 default:
20 return;
21 case 'c':
22 x *= 2.54;
23 y *= 2.54;
24 case 'i':
25 x /= 200;
26 y /= 200;
27 case 'u':
28 scalex = 1/x;
29 scaley = 1/y;
30 }
31 scaleflag = 1;
32}