/* getm4.f -- translated by f2c (version of 3 February 1990  3:36:42).
   You must link the resulting object file with the libraries:
	-lF77 -lI77 -lm -lc   (in that order)
*/

#include "f2c.h"

/* Common Block Declarations */

struct {
    doublereal cpyknt;
    integer istack[1], lorg, icore, maxcor, maxuse, memavl, ldval, numblk, 
	    loctab, ltab, ifwa, nwoff, ntab, maxmem, memerr, nwd4, nwd8, 
	    nwd16;
} memmgr_;

#define memmgr_1 memmgr_

/*<       subroutine getm4(ipntr,ksize) >*/
/* Subroutine */ int getm4_(ipntr, ksize)
integer *ipntr, *ksize;
{
    extern /* Subroutine */ int getmx_();
    static integer iwsize;

    /* Parameter adjustments */
    --ipntr;

    /* Function Body */
/*<       implicit double precision (a-h,o-z) >*/
/* spice version 2g.6  sccsid=memmgr 3/15/83 */
/*<       common /memmgr/ cpyknt,istack(1),lorg,icore,maxcor,maxuse,memavl, >*/
/*<      1   ldval,numblk,loctab,ltab,ifwa,nwoff,ntab,maxmem,memerr,nwd4, >*/
/*<      2   nwd8,nwd16 >*/
/*<       dimension ipntr(1) >*/
/*<       iwsize=nwd4 >*/
    iwsize = memmgr_1.nwd4;
/*<       call getmx(ipntr(1),ksize,iwsize) >*/
    getmx_(&ipntr[1], ksize, &iwsize);
/*<       return >*/
    return 0;
/*<       end >*/
} /* getm4_ */

