Back to index

salome-med  6.5.0
Functions
test1_V2_1.cxx File Reference
#include "med.hxx"

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 41 of file test1_V2_1.cxx.

{
  med_err ret = 0;
  med_idt fid;
  char des[MED_TAILLE_DESC+1]="Ceci est un courte description du mon fichier test1.med";

  fid = MEDouvrir((char*)"test1.med",MED_REMP);
  if (fid < 0)
    ret = -1;
  printf("%d\n",ret);

  if (ret == 0)
    ret = MEDfichDesEcr(fid,des, MED_REMP);
  printf("%d\n",ret);

  ret = MEDfermer(fid);
  printf("%d\n",ret);

  fid = MEDouvrir((char*)"test1.med",MED_LECT);
  if (fid < 0)
    ret = -1;
  printf("%d\n",ret);

  ret = MEDfermer(fid);
  printf("%d\n",ret);
  
  return 0;
}

Here is the call graph for this function: