ftp.nice.ch/pub/next/unix/science/lp_solve-2.0.NIHS.bs.tar.gz#/lp_solve-2.0/mps2lp.c

This is mps2lp.c in view mode; [Download] [Up]

#include "lpkit.h"
#include <stdio.h>

int main(int argc, char *argv[])
{
  lprec *lp;
  if (argc != 1)
    {  
      printf("mps to lp file converter by Jeroen J. Dirks (j.j.dirks@twi.tudelft.nl)\n");
      printf("Usage: mps2lp < inputfile.mps >  outputfile.lp\n");
    }
  else
    {
      fprintf(stderr,"reading mps file\n");
      lp = read_mps(stdin, FALSE);
      if (lp != NULL) 
        {
          fprintf(stderr,"writing lp file\n");
          write_LP(lp,stdout);
        }
    }

  return(0);
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.