print_file

Defines the output for the print_* functions.

int print_file(char *filename);

Return Value

print_file returns TRUE (1) if the file could be opened, else FALSE (0).

Parameters

filename

The file to print the results to. If NULL, then output is stdout again.

Remarks

The print_file function defines the output for the print_* functions.
This function is meant for debugging purposes. By default, the output is stdout.

Example

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

int main(void)
{
  print_file("log.txt");

  return(0);
}

lp_solve API reference

See Also delete_lp, make_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, print_lp, print_objective, print_solution, print_constraints, print_duals, print_scales