xref: /csrg-svn/usr.bin/f77/libF77/long_.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
422924Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610509Sdlw  */
710509Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)long_.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
1210509Sdlw /*
1310509Sdlw  * convert short ints to long.
1410509Sdlw  * Needed for literals in -I2 compiles.
1510509Sdlw  * used as follows:
1610509Sdlw  *	integer*4 long
1710509Sdlw  *	...
1810509Sdlw  *	call ftell(long(11))
1910509Sdlw  */
2010509Sdlw 
long_(i)2110509Sdlw long long_(i)
2210509Sdlw short *i;
2310509Sdlw {	return((long)*i);	}
24